Package net.minecraft.world.server
Class Ticket<T>
- java.lang.Object
-
- net.minecraft.world.server.Ticket<T>
-
-
Field Summary
Fields Modifier and Type Field Description private long
createdTick
private boolean
forceTicks
private T
key
private int
ticketLevel
private TicketType<T>
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
Ticket(TicketType<T> p_i226095_1_, int p_i226095_2_, T p_i226095_3_)
Ticket(TicketType<T> p_i226095_1_, int p_i226095_2_, T p_i226095_3_, boolean forceTicks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Ticket<?> p_compareTo_1_)
boolean
equals(java.lang.Object p_equals_1_)
int
getTicketLevel()
TicketType<T>
getType()
int
hashCode()
boolean
isForceTicks()
protected void
setCreatedTick(long p_229861_1_)
protected boolean
timedOut(long p_223182_1_)
java.lang.String
toString()
-
-
-
Field Detail
-
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 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 interfacejava.lang.Comparable<T>
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.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()
-
-