Class ChunkTicketType<T>

java.lang.Object
net.minecraft.server.world.ChunkTicketType<T>

public class ChunkTicketType<T>
extends Object
  • Field Details

  • Constructor Details

    • ChunkTicketType

      protected ChunkTicketType​(String name, Comparator<T> comparator, long expiryTicks)
  • Method Details

    • create

      public static <T> ChunkTicketType<T> create​(String name, Comparator<T> comparator)
      Creates a new ticket type that does not expire.
    • create

      public static <T> ChunkTicketType<T> create​(String name, Comparator<T> comparator, int expiryTicks)
      Create a new ticket type that expires after an amount of ticks.
      Parameters:
      expiryTicks - the expiry time in ticks, does not expire if 0
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getArgumentComparator

      public Comparator<T> getArgumentComparator()
    • getExpiryTicks

      public long getExpiryTicks()