Uses of Record Class
net.neoforged.neoforge.common.world.chunk.TicketSet
Packages that use TicketSet
-
Uses of TicketSet in net.neoforged.neoforge.common.world.chunk
Fields in net.neoforged.neoforge.common.world.chunk with type parameters of type TicketSetModifier and TypeFieldDescriptionForcedChunkManager.OwnedChunks.BLOCK_CHUNK_CODEC
ForcedChunkManager.OwnedChunks.blockChunks
The field for theblockChunks
record component.TicketHelper.blockTickets
static final com.mojang.serialization.Codec
<TicketSet> TicketSet.CODEC
ForcedChunkManager.OwnedChunks.ENTITY_CHUNK_CODEC
ForcedChunkManager.OwnedChunks.entityChunks
The field for theentityChunks
record component.TicketHelper.entityTickets
Methods in net.neoforged.neoforge.common.world.chunk that return types with arguments of type TicketSetModifier and TypeMethodDescriptionForcedChunkManager.OwnedChunks.blockChunks()
Returns the value of theblockChunks
record component.ForcedChunkManager.OwnedChunks.entityChunks()
Returns the value of theentityChunks
record component.private static <T extends Comparable<? super T>>
Map<net.minecraft.resources.ResourceLocation, Map<T, TicketSet>> ForcedChunkManager.gatherTicketsById
(ForcedChunkManager.TicketTracker<T> tickets, boolean includeLoaded, boolean includeDeactivated) Gathers tickets into an ID filtered map for use in providing all tickets a controller has registered to itsLoadingValidationCallback
.TicketHelper.getBlockTickets()
Returns all "BLOCK" tickets this controller had registered and which block positions are forcing which chunks.TicketHelper.getEntityTickets()
Returns all "ENTITY" tickets this controller had registered and which entity (UUID) is forcing which chunks.Methods in net.neoforged.neoforge.common.world.chunk with parameters of type TicketSetModifier and TypeMethodDescriptionprivate void
ForcedChunkManager.TicketTracker.inheritDeactivated
(ForcedChunkManager.TicketOwner<T> owner, TicketSet ticketSet) private <T extends Comparable<? super T>>
voidTicketHelper.removeAllTickets
(ForcedChunkManager.TicketTracker<T> tickets, T owner, @Nullable TicketSet existingTickets) Removes all tickets that a given owner was responsible for; both normal and ones forcing natural spawning.Method parameters in net.neoforged.neoforge.common.world.chunk with type arguments of type TicketSetModifier and TypeMethodDescriptionprivate static <T extends Comparable<? super T>>
voidForcedChunkManager.gatherTicketsById
(it.unimi.dsi.fastutil.longs.Long2ObjectMap<Set<ForcedChunkManager.TicketOwner<T>>> tickets, Function<TicketSet, it.unimi.dsi.fastutil.longs.LongSet> typeGetter, Map<net.minecraft.resources.ResourceLocation, Map<T, TicketSet>> modSortedOwnedChunks) Gathers tickets into an ID filtered map for use in providing all tickets a controller has registered to itsLoadingValidationCallback
.private static <T extends Comparable<? super T>>
voidForcedChunkManager.gatherTicketsById
(it.unimi.dsi.fastutil.longs.Long2ObjectMap<Set<ForcedChunkManager.TicketOwner<T>>> tickets, Function<TicketSet, it.unimi.dsi.fastutil.longs.LongSet> typeGetter, Map<net.minecraft.resources.ResourceLocation, Map<T, TicketSet>> modSortedOwnedChunks) Gathers tickets into an ID filtered map for use in providing all tickets a controller has registered to itsLoadingValidationCallback
.Constructor parameters in net.neoforged.neoforge.common.world.chunk with type arguments of type TicketSetModifierConstructorDescriptionOwnedChunks
(net.minecraft.resources.ResourceLocation controller, Map<net.minecraft.core.BlockPos, TicketSet> blockChunks, Map<UUID, TicketSet> entityChunks) Creates an instance of aOwnedChunks
record class.(package private)
TicketHelper
(net.minecraft.world.level.TicketStorage saveData, net.minecraft.resources.ResourceLocation controllerId, Map<net.minecraft.core.BlockPos, TicketSet> blockTickets, Map<UUID, TicketSet> entityTickets)