Class Ticket<T>

  • All Implemented Interfaces:
    java.lang.Comparable<Ticket<?>>

    public final class Ticket<T>
    extends java.lang.Object
    implements java.lang.Comparable<Ticket<?>>
    • Field Detail

      • ticketLevel

        private final int ticketLevel
      • key

        private final T key
      • createdTick

        private long createdTick
      • forceTicks

        private final boolean forceTicks
    • Constructor Detail

      • 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 Detail

      • compareTo

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

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getTicketLevel

        public int getTicketLevel()
      • setCreatedTick

        protected void setCreatedTick​(long p_229861_1_)
      • timedOut

        protected boolean timedOut​(long p_223182_1_)
      • isForceTicks

        public boolean isForceTicks()