Skip to content

Commit

Permalink
api: Rename Title.Times.of (KyoriPowered#448)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahvdAa committed Sep 21, 2021
1 parent 4877bb3 commit 3e043b0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions api/src/main/java/net/kyori/adventure/title/Title.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,23 @@ interface Times extends Examinable {
* @param fadeOut the fade-out time
* @return times
* @since 4.0.0
* @deprecated for removal since 4.10.0, use {@link #times()}
*/
@Deprecated
static @NotNull Times of(final @NotNull Duration fadeIn, final @NotNull Duration stay, final @NotNull Duration fadeOut) {
return times(fadeIn, stay, fadeOut);
}

/**
* Creates times.
*
* @param fadeIn the fade-in time
* @param stay the stay time
* @param fadeOut the fade-out time
* @return times
* @since 4.10.0
*/
static @NotNull Times times(final @NotNull Duration fadeIn, final @NotNull Duration stay, final @NotNull Duration fadeOut) {
return new TitleImpl.TimesImpl(fadeIn, stay, fadeOut);
}

Expand Down

0 comments on commit 3e043b0

Please sign in to comment.