Package net.minecraft.world.server
Class Ticket<T>
java.lang.Object
net.minecraft.world.server.Ticket<T>
- All Implemented Interfaces:
Comparable<Ticket<?>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private final boolean
private final T
private final int
private final TicketType<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionint
boolean
int
getType()
int
hashCode()
boolean
protected void
setCreatedTick
(long p_229861_1_) protected boolean
timedOut
(long p_223182_1_) toString()
-
Field Details
-
type
-
ticketLevel
private final int ticketLevel -
key
-
createdTick
private long createdTick -
forceTicks
private final boolean forceTicks
-
-
Constructor Details
-
Ticket
-
Ticket
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<T>
-
equals
-
hashCode
public int hashCode() -
toString
-
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()
-