Package net.minecraft.server.level
Class Ticket<T>
java.lang.Object
net.minecraft.server.level.Ticket<T>
- All Implemented Interfaces:
Comparable<Ticket<?>>
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private boolean
private T
private int
private TicketType<T>
-
Constructor Summary
ModifierConstructorDescriptionprotected
Ticket(TicketType<T> p_9425_, int p_9426_, T p_9427_)
Ticket(TicketType<T> p_9425_, int p_9426_, T p_9427_, boolean forceTicks)
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getType()
int
hashCode()
boolean
protected void
setCreatedTick(long p_9430_)
protected boolean
timedOut(long p_9435_)
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_9430_) -
timedOut
protected boolean timedOut(long p_9435_) -
isForceTicks
public boolean isForceTicks()
-