Interface TicketType<T>

Type Parameters:
T - The type of value that is associated with a Ticket of this type.

public interface TicketType<T>
Represents a type of chunk loading ticket that can be obtained to ensure chunks remain loaded in a ServerWorld.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> TicketType.Builder<T>
     
    Gets the lifetime of any tickets of this type.
    The name of this type.
  • Method Details

    • builder

      static <T> TicketType.Builder<T> builder()
    • name

      String name()
      The name of this type.
      Returns:
      The name
    • lifetime

      Ticks lifetime()
      Gets the lifetime of any tickets of this type.
      Returns:
      The number of Ticks any tickets of this type will be valid for.