Uses of Class
net.minecraft.world.server.TicketType
-
Uses of TicketType in net.minecraft.world.server
Modifier and TypeFieldDescriptionstatic final TicketType<Unit>
TicketType.DRAGON
static final TicketType<ChunkPos>
TicketType.FORCED
static final TicketType<ChunkPos>
TicketType.LIGHT
static final TicketType<ChunkPos>
TicketType.PLAYER
static final TicketType<BlockPos>
TicketType.PORTAL
static final TicketType<Integer>
TicketType.POST_TELEPORT
static final TicketType<Unit>
TicketType.START
private final TicketType<T>
Ticket.type
static final TicketType<ChunkPos>
TicketType.UNKNOWN
Modifier and TypeMethodDescriptionstatic <T> TicketType<T>
TicketType.create
(String p_219484_0_, Comparator<T> p_219484_1_) static <T> TicketType<T>
TicketType.create
(String p_223183_0_, Comparator<T> p_223183_1_, int p_223183_2_) Ticket.getType()
Modifier and TypeMethodDescription<T> void
ServerChunkProvider.addRegionTicket
(TicketType<T> p_217228_1_, ChunkPos p_217228_2_, int p_217228_3_, T p_217228_4_) <T> void
TicketManager.addRegionTicket
(TicketType<T> p_219331_1_, ChunkPos p_219331_2_, int p_219331_3_, T p_219331_4_) <T> void
TicketManager.addTicket
(TicketType<T> p_219356_1_, ChunkPos p_219356_2_, int p_219356_3_, T p_219356_4_) <T> void
TicketManager.registerTicking
(TicketType<T> type, ChunkPos pos, int distance, T value) <T> void
ServerChunkProvider.registerTickingTicket
(TicketType<T> type, ChunkPos pos, int distance, T value) <T> void
TicketManager.releaseTicking
(TicketType<T> type, ChunkPos pos, int distance, T value) <T> void
ServerChunkProvider.releaseTickingTicket
(TicketType<T> type, ChunkPos pos, int distance, T value) <T> void
ServerChunkProvider.removeRegionTicket
(TicketType<T> p_217222_1_, ChunkPos p_217222_2_, int p_217222_3_, T p_217222_4_) <T> void
TicketManager.removeRegionTicket
(TicketType<T> p_219362_1_, ChunkPos p_219362_2_, int p_219362_3_, T p_219362_4_) <T> void
TicketManager.removeTicket
(TicketType<T> p_219345_1_, ChunkPos p_219345_2_, int p_219345_3_, T p_219345_4_) 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) -
Uses of TicketType in net.minecraftforge.common.world
Modifier and TypeFieldDescriptionprivate static final TicketType<ForgeChunkManager.TicketOwner<BlockPos>>
ForgeChunkManager.BLOCK
private static final TicketType<ForgeChunkManager.TicketOwner<BlockPos>>
ForgeChunkManager.BLOCK_TICKING
private static final TicketType<ForgeChunkManager.TicketOwner<UUID>>
ForgeChunkManager.ENTITY
private static final TicketType<ForgeChunkManager.TicketOwner<UUID>>
ForgeChunkManager.ENTITY_TICKING
Modifier and TypeMethodDescriptionprivate static <T extends Comparable<? super T>>
booleanForgeChunkManager.forceChunk
(ServerWorld world, String modId, T owner, int chunkX, int chunkZ, boolean add, boolean ticking, TicketType<ForgeChunkManager.TicketOwner<T>> type, Function<ForcedChunksSaveData, ForgeChunkManager.TicketTracker<T>> ticketGetter) Forces a chunk to be loaded for the given mod with the given "owner".private static <T extends Comparable<? super T>>
voidForgeChunkManager.forceChunk
(ServerWorld world, ChunkPos pos, TicketType<ForgeChunkManager.TicketOwner<T>> type, ForgeChunkManager.TicketOwner<T> owner, boolean add, boolean ticking) Adds/Removes a ticket from the world's chunk provider with the proper levels to match the forced chunks.private static <T extends Comparable<? super T>>
voidForgeChunkManager.reinstatePersistentChunks
(ServerWorld world, TicketType<ForgeChunkManager.TicketOwner<T>> type, Map<ForgeChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> tickets, boolean ticking) Adds back any persistent forced chunks to the world's chunk provider.