public class TicketType<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TicketType<Unit> |
DRAGON |
static TicketType<ChunkPos> |
FORCED |
private long |
lifespan |
static TicketType<ChunkPos> |
LIGHT |
private java.lang.String |
name |
static TicketType<ChunkPos> |
PLAYER |
static TicketType<BlockPos> |
PORTAL |
static TicketType<java.lang.Integer> |
POST_TELEPORT |
static TicketType<Unit> |
START |
private java.util.Comparator<T> |
typeComparator |
static TicketType<ChunkPos> |
UNKNOWN |
Modifier | Constructor and Description |
---|---|
protected |
TicketType(java.lang.String nameIn,
java.util.Comparator<T> comparator,
long lifespanIn) |
Modifier and Type | Method and Description |
---|---|
static <T> TicketType<T> |
create(java.lang.String nameIn,
java.util.Comparator<T> comparator) |
static <T> TicketType<T> |
create(java.lang.String nameIn,
java.util.Comparator<T> comparator,
int lifespanIn) |
java.util.Comparator<T> |
getComparator() |
long |
getLifespan() |
java.lang.String |
toString() |
private final java.lang.String name
private final java.util.Comparator<T> typeComparator
private final long lifespan
public static final TicketType<Unit> START
public static final TicketType<Unit> DRAGON
public static final TicketType<ChunkPos> PLAYER
public static final TicketType<ChunkPos> FORCED
public static final TicketType<ChunkPos> LIGHT
public static final TicketType<BlockPos> PORTAL
public static final TicketType<java.lang.Integer> POST_TELEPORT
public static final TicketType<ChunkPos> UNKNOWN
protected TicketType(java.lang.String nameIn, java.util.Comparator<T> comparator, long lifespanIn)
public static <T> TicketType<T> create(java.lang.String nameIn, java.util.Comparator<T> comparator)
public static <T> TicketType<T> create(java.lang.String nameIn, java.util.Comparator<T> comparator, int lifespanIn)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Comparator<T> getComparator()
public long getLifespan()