public class ChunkTicketType<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private Comparator<T> |
argumentComparator |
private long |
expiryTicks |
static ChunkTicketType<ChunkPos> |
field_14031
Used to force load chunks.
|
static ChunkTicketType<ChunkPos> |
field_14032
Represents a type of ticket that has an unknown cause for loading chunks.
|
static ChunkTicketType<Unit> |
field_17264
Used by the ender dragon to load the central end island during the boss battle.
|
static ChunkTicketType<BlockPos> |
field_19280
Used by a nether portal to load chunks in the other dimension.
|
static ChunkTicketType<Integer> |
field_19347
Used to load the chunks at the destination of teleportation.
|
static ChunkTicketType<ChunkPos> |
LIGHT |
private String |
name |
static ChunkTicketType<ChunkPos> |
PLAYER |
static ChunkTicketType<Unit> |
START |
| Modifier | Constructor and Description |
|---|---|
protected |
ChunkTicketType(String name,
Comparator<T> comparator,
long expiryTicks) |
| Modifier and Type | Method and Description |
|---|---|
static <T> ChunkTicketType<T> |
create(String name,
Comparator<T> comparator)
Creates a new ticket type that does not expire.
|
static <T> ChunkTicketType<T> |
create(String name,
Comparator<T> comparator,
int expiryTicks)
Create a new ticket type that expires after an amount of ticks.
|
Comparator<T> |
getArgumentComparator() |
long |
getExpiryTicks() |
String |
toString() |
public static final ChunkTicketType<Unit> START
public static final ChunkTicketType<Unit> field_17264
public static final ChunkTicketType<ChunkPos> PLAYER
public static final ChunkTicketType<ChunkPos> field_14031
public static final ChunkTicketType<ChunkPos> LIGHT
public static final ChunkTicketType<BlockPos> field_19280
public static final ChunkTicketType<Integer> field_19347
public static final ChunkTicketType<ChunkPos> field_14032
private final String name
private final Comparator<T> argumentComparator
private final long expiryTicks
protected ChunkTicketType(String name, Comparator<T> comparator, long expiryTicks)
public static <T> ChunkTicketType<T> create(String name, Comparator<T> comparator)
public static <T> ChunkTicketType<T> create(String name, Comparator<T> comparator, int expiryTicks)
expiryTicks - the expiry time in ticks, does not expire if 0public Comparator<T> getArgumentComparator()
public long getExpiryTicks()