Skip to content

Commit

Permalink
Update on top of Tickets#infinite
Browse files Browse the repository at this point in the history
  • Loading branch information
aromaa committed May 4, 2024
1 parent d13450e commit 3bf10f8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main/java/org/spongepowered/api/world/server/TicketType.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@
* @param <T> The type of value that is associated with a {@link Ticket} of this
* type.
*/
@SuppressWarnings("unchecked")
public interface TicketType<T> {

static <U> Builder<U> builder() {
static <T> Builder<T> builder() {
return Sponge.game().builderProvider().provide(Builder.class);
}

Expand Down Expand Up @@ -91,17 +92,9 @@ interface Builder<T> extends ResettableBuilder<T, Builder<T>> {
*/
Builder<T> lifetime(Ticks lifetime);

/**
* Sets the lifetime of the {@link TicketType type} to never expire.
*
* @return The builder, for chaining
*/
Builder<T> neverExpires();

/**
* Builds a new {@link TicketType type}.
*
* @throws IllegalStateException If no name or lifetime have been specified
* @return The type
*/
TicketType<T> build();
Expand Down

0 comments on commit 3bf10f8

Please sign in to comment.