Class Ticket<T>

java.lang.Object
net.minecraft.server.level.Ticket<T>
All Implemented Interfaces:
Comparable<Ticket<?>>

public final class Ticket<T> extends Object implements Comparable<Ticket<?>>
  • Field Details

    • type

      private final TicketType<T> type
    • ticketLevel

      private final int ticketLevel
    • key

      private final T key
    • forceTicks

      private final boolean forceTicks
    • createdTick

      private long createdTick
  • Constructor Details

    • Ticket

      protected Ticket(TicketType<T> p_9425_, int p_9426_, T p_9427_)
    • Ticket

      public Ticket(TicketType<T> p_9425_, int p_9426_, T p_9427_, boolean forceTicks)
  • Method Details

    • compareTo

      public int compareTo(Ticket<?> p_9432_)
      Specified by:
      compareTo in interface Comparable<T>
    • equals

      public boolean equals(Object p_9439_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

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

      public TicketType<T> getType()
    • getTicketLevel

      public int getTicketLevel()
    • isForceTicks

      public boolean isForceTicks()
    • setCreatedTick

      protected void setCreatedTick(long p_9430_)
    • timedOut

      protected boolean timedOut(long p_9435_)