Class Ticket<T>

java.lang.Object
net.minecraft.world.server.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
    • createdTick

      private long createdTick
    • forceTicks

      private final boolean forceTicks
  • Constructor Details

    • Ticket

      protected Ticket(TicketType<T> p_i226095_1_, int p_i226095_2_, T p_i226095_3_)
    • Ticket

      public Ticket(TicketType<T> p_i226095_1_, int p_i226095_2_, T p_i226095_3_, boolean forceTicks)
  • Method Details

    • compareTo

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

      public boolean equals(Object p_equals_1_)
      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()
    • setCreatedTick

      protected void setCreatedTick(long p_229861_1_)
    • timedOut

      protected boolean timedOut(long p_223182_1_)
    • isForceTicks

      public boolean isForceTicks()