Uses of Class
net.neoforged.neoforge.common.world.chunk.ForcedChunkManager.TicketOwner
Packages that use ForcedChunkManager.TicketOwner
-
Uses of ForcedChunkManager.TicketOwner in net.neoforged.neoforge.common.world.chunk
Fields in net.neoforged.neoforge.common.world.chunk with type parameters of type ForcedChunkManager.TicketOwnerModifier and TypeFieldDescription(package private) static final TicketType
<ForcedChunkManager.TicketOwner<BlockPos>> ForcedChunkManager.BLOCK
(package private) static final TicketType
<ForcedChunkManager.TicketOwner<BlockPos>> ForcedChunkManager.BLOCK_TICKING
(package private) final Map
<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> ForcedChunkManager.TicketTracker.chunks
(package private) static final TicketType
<ForcedChunkManager.TicketOwner<UUID>> ForcedChunkManager.ENTITY
(package private) static final TicketType
<ForcedChunkManager.TicketOwner<UUID>> ForcedChunkManager.ENTITY_TICKING
(package private) final Map
<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> ForcedChunkManager.TicketTracker.tickingChunks
Methods in net.neoforged.neoforge.common.world.chunk that return types with arguments of type ForcedChunkManager.TicketOwnerModifier and TypeMethodDescriptionMap
<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> ForcedChunkManager.TicketTracker.getChunks()
Gets an unmodifiable view of the tracked chunks.private Map
<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> ForcedChunkManager.TicketTracker.getTickets
(boolean ticking) Map
<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> ForcedChunkManager.TicketTracker.getTickingChunks()
Gets an unmodifiable view of the tracked fully ticking chunks.Methods in net.neoforged.neoforge.common.world.chunk with parameters of type ForcedChunkManager.TicketOwnerModifier and TypeMethodDescriptionprivate boolean
ForcedChunkManager.TicketTracker.add
(ForcedChunkManager.TicketOwner<T> owner, long chunk, boolean ticking) int
ForcedChunkManager.TicketOwner.compareTo
(ForcedChunkManager.TicketOwner<T> other) private static <T extends Comparable<? super T>>
voidForcedChunkManager.forceChunk
(ServerLevel level, ChunkPos pos, TicketType<ForcedChunkManager.TicketOwner<T>> type, ForcedChunkManager.TicketOwner<T> owner, boolean add, boolean ticking) Adds/Removes a ticket from the level's chunk provider with the proper levels to match the forced chunks.boolean
ForcedChunkManager.TicketTracker.remove
(ForcedChunkManager.TicketOwner<T> owner, long chunk, boolean ticking) Method parameters in net.neoforged.neoforge.common.world.chunk with type arguments of type ForcedChunkManager.TicketOwnerModifier and TypeMethodDescription(package private) static <T extends Comparable<? super T>>
booleanForcedChunkManager.forceChunk
(ServerLevel level, ResourceLocation id, T owner, int chunkX, int chunkZ, boolean add, boolean ticking, TicketType<ForcedChunkManager.TicketOwner<T>> type, Function<ForcedChunksSavedData, ForcedChunkManager.TicketTracker<T>> ticketGetter) Forces a chunk to be loaded for the given mod with the given "owner".private static <T extends Comparable<? super T>>
voidForcedChunkManager.forceChunk
(ServerLevel level, ChunkPos pos, TicketType<ForcedChunkManager.TicketOwner<T>> type, ForcedChunkManager.TicketOwner<T> owner, boolean add, boolean ticking) Adds/Removes a ticket from the level's chunk provider with the proper levels to match the forced chunks.private static <T extends Comparable<? super T>>
voidForcedChunkManager.gatherTicketsById
(Map<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> tickets, Function<TicketSet, it.unimi.dsi.fastutil.longs.LongSet> typeGetter, Map<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 void
ForcedChunkManager.readBlockForcedChunks
(ResourceLocation controllerId, long chunkPos, CompoundTag modEntry, String key, Map<ForcedChunkManager.TicketOwner<BlockPos>, it.unimi.dsi.fastutil.longs.LongSet> blockForcedChunks) Reads the forge block forced chunks.private static void
ForcedChunkManager.readEntityForcedChunks
(ResourceLocation controllerId, long chunkPos, CompoundTag modEntry, String key, Map<ForcedChunkManager.TicketOwner<UUID>, it.unimi.dsi.fastutil.longs.LongSet> entityForcedChunks) Reads the forge entity forced chunks.private static <T extends Comparable<? super T>>
voidForcedChunkManager.reinstatePersistentChunks
(ServerLevel level, TicketType<ForcedChunkManager.TicketOwner<T>> type, Map<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> tickets, boolean ticking) Adds back any persistent forced chunks to the level's chunk provider.private static <T extends Comparable<? super T>>
voidForcedChunkManager.reinstatePersistentChunks
(ServerLevel level, TicketType<ForcedChunkManager.TicketOwner<T>> type, Map<ForcedChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> tickets, boolean ticking) Adds back any persistent forced chunks to the level's chunk provider.