Package net.minecraft.server.world
Class ChunkTicketType<T>
java.lang.Object
net.minecraft.server.world.ChunkTicketType<T>
- Mappings:
Namespace Name official ani
intermediary net/minecraft/class_3230
named net/minecraft/server/world/ChunkTicketType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Comparator<T>
static final ChunkTicketType<Unit>
Used by the ender dragon to load the central end island during the boss battle.private final long
static final ChunkTicketType<ChunkPos>
Used to force load chunks.static final ChunkTicketType<ChunkPos>
private final String
static final ChunkTicketType<ChunkPos>
static final ChunkTicketType<BlockPos>
Used by a nether portal to load chunks in the other dimension.static final ChunkTicketType<Integer>
Used to load the chunks at the destination of teleportation.static final ChunkTicketType<Unit>
static final ChunkTicketType<ChunkPos>
Represents a type of ticket that has an unknown cause for loading chunks. -
Constructor Summary
ModifierConstructorDescriptionprotected
ChunkTicketType
(String name, Comparator<T> argumentComparator, long expiryTicks) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ChunkTicketType<T>
create
(String name, Comparator<T> argumentComparator) Creates a new ticket type that does not expire.static <T> ChunkTicketType<T>
create
(String name, Comparator<T> argumentComparator, int expiryTicks) Create a new ticket type that expires after an amount of ticks.long
toString()
-
Field Details
-
START
- Mappings:
Namespace Name Mixin selector official a
Lani;a:Lani;
intermediary field_14030
Lnet/minecraft/class_3230;field_14030:Lnet/minecraft/class_3230;
named START
Lnet/minecraft/server/world/ChunkTicketType;START:Lnet/minecraft/server/world/ChunkTicketType;
-
DRAGON
Used by the ender dragon to load the central end island during the boss battle.- Mappings:
Namespace Name Mixin selector official b
Lani;b:Lani;
intermediary field_17264
Lnet/minecraft/class_3230;field_17264:Lnet/minecraft/class_3230;
named DRAGON
Lnet/minecraft/server/world/ChunkTicketType;DRAGON:Lnet/minecraft/server/world/ChunkTicketType;
-
PLAYER
- Mappings:
Namespace Name Mixin selector official c
Lani;c:Lani;
intermediary field_14033
Lnet/minecraft/class_3230;field_14033:Lnet/minecraft/class_3230;
named PLAYER
Lnet/minecraft/server/world/ChunkTicketType;PLAYER:Lnet/minecraft/server/world/ChunkTicketType;
-
FORCED
Used to force load chunks.- Mappings:
Namespace Name Mixin selector official d
Lani;d:Lani;
intermediary field_14031
Lnet/minecraft/class_3230;field_14031:Lnet/minecraft/class_3230;
named FORCED
Lnet/minecraft/server/world/ChunkTicketType;FORCED:Lnet/minecraft/server/world/ChunkTicketType;
-
LIGHT
- Mappings:
Namespace Name Mixin selector official e
Lani;e:Lani;
intermediary field_19270
Lnet/minecraft/class_3230;field_19270:Lnet/minecraft/class_3230;
named LIGHT
Lnet/minecraft/server/world/ChunkTicketType;LIGHT:Lnet/minecraft/server/world/ChunkTicketType;
-
PORTAL
Used by a nether portal to load chunks in the other dimension.- Mappings:
Namespace Name Mixin selector official f
Lani;f:Lani;
intermediary field_19280
Lnet/minecraft/class_3230;field_19280:Lnet/minecraft/class_3230;
named PORTAL
Lnet/minecraft/server/world/ChunkTicketType;PORTAL:Lnet/minecraft/server/world/ChunkTicketType;
-
POST_TELEPORT
Used to load the chunks at the destination of teleportation.- Mappings:
Namespace Name Mixin selector official g
Lani;g:Lani;
intermediary field_19347
Lnet/minecraft/class_3230;field_19347:Lnet/minecraft/class_3230;
named POST_TELEPORT
Lnet/minecraft/server/world/ChunkTicketType;POST_TELEPORT:Lnet/minecraft/server/world/ChunkTicketType;
-
UNKNOWN
Represents a type of ticket that has an unknown cause for loading chunks.- Mappings:
Namespace Name Mixin selector official h
Lani;h:Lani;
intermediary field_14032
Lnet/minecraft/class_3230;field_14032:Lnet/minecraft/class_3230;
named UNKNOWN
Lnet/minecraft/server/world/ChunkTicketType;UNKNOWN:Lnet/minecraft/server/world/ChunkTicketType;
-
name
- Mappings:
Namespace Name Mixin selector official i
Lani;i:Ljava/lang/String;
intermediary field_14034
Lnet/minecraft/class_3230;field_14034:Ljava/lang/String;
named name
Lnet/minecraft/server/world/ChunkTicketType;name:Ljava/lang/String;
-
argumentComparator
- Mappings:
Namespace Name Mixin selector official j
Lani;j:Ljava/util/Comparator;
intermediary field_14029
Lnet/minecraft/class_3230;field_14029:Ljava/util/Comparator;
named argumentComparator
Lnet/minecraft/server/world/ChunkTicketType;argumentComparator:Ljava/util/Comparator;
-
expiryTicks
private final long expiryTicks- Mappings:
Namespace Name Mixin selector official k
Lani;k:J
intermediary field_19348
Lnet/minecraft/class_3230;field_19348:J
named expiryTicks
Lnet/minecraft/server/world/ChunkTicketType;expiryTicks:J
-
-
Constructor Details
-
ChunkTicketType
- Mappings:
Namespace Name Mixin selector official <init>
Lani;<init>(Ljava/lang/String;Ljava/util/Comparator;J)V
intermediary <init>
Lnet/minecraft/class_3230;<init>(Ljava/lang/String;Ljava/util/Comparator;J)V
named <init>
Lnet/minecraft/server/world/ChunkTicketType;<init>(Ljava/lang/String;Ljava/util/Comparator;J)V
-
-
Method Details
-
create
Creates a new ticket type that does not expire.- Mappings:
Namespace Name Mixin selector official a
Lani;a(Ljava/lang/String;Ljava/util/Comparator;)Lani;
intermediary method_14291
Lnet/minecraft/class_3230;method_14291(Ljava/lang/String;Ljava/util/Comparator;)Lnet/minecraft/class_3230;
named create
Lnet/minecraft/server/world/ChunkTicketType;create(Ljava/lang/String;Ljava/util/Comparator;)Lnet/minecraft/server/world/ChunkTicketType;
-
create
public static <T> ChunkTicketType<T> create(String name, Comparator<T> argumentComparator, int expiryTicks) Create a new ticket type that expires after an amount of ticks.- Parameters:
expiryTicks
- the expiry time in ticks, does not expire if 0- Mappings:
Namespace Name Mixin selector official a
Lani;a(Ljava/lang/String;Ljava/util/Comparator;I)Lani;
intermediary method_20628
Lnet/minecraft/class_3230;method_20628(Ljava/lang/String;Ljava/util/Comparator;I)Lnet/minecraft/class_3230;
named create
Lnet/minecraft/server/world/ChunkTicketType;create(Ljava/lang/String;Ljava/util/Comparator;I)Lnet/minecraft/server/world/ChunkTicketType;
-
toString
-
getArgumentComparator
- Mappings:
Namespace Name Mixin selector official a
Lani;a()Ljava/util/Comparator;
intermediary method_14292
Lnet/minecraft/class_3230;method_14292()Ljava/util/Comparator;
named getArgumentComparator
Lnet/minecraft/server/world/ChunkTicketType;getArgumentComparator()Ljava/util/Comparator;
-
getExpiryTicks
public long getExpiryTicks()- Mappings:
Namespace Name Mixin selector official b
Lani;b()J
intermediary method_20629
Lnet/minecraft/class_3230;method_20629()J
named getExpiryTicks
Lnet/minecraft/server/world/ChunkTicketType;getExpiryTicks()J
-