Uses of Class
net.minecraftforge.common.world.ForgeChunkManager.TicketOwner
-
Uses of ForgeChunkManager.TicketOwner 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 final Map<ForgeChunkManager.TicketOwner<T>,
it.unimi.dsi.fastutil.longs.LongSet> ForgeChunkManager.TicketTracker.chunks
private static final TicketType<ForgeChunkManager.TicketOwner<UUID>>
ForgeChunkManager.ENTITY
private static final TicketType<ForgeChunkManager.TicketOwner<UUID>>
ForgeChunkManager.ENTITY_TICKING
private final Map<ForgeChunkManager.TicketOwner<T>,
it.unimi.dsi.fastutil.longs.LongSet> ForgeChunkManager.TicketTracker.tickingChunks
Modifier and TypeMethodDescriptionMap<ForgeChunkManager.TicketOwner<T>,
it.unimi.dsi.fastutil.longs.LongSet> ForgeChunkManager.TicketTracker.getChunks()
Gets an unmodifiable view of the tracked chunks.private Map<ForgeChunkManager.TicketOwner<T>,
it.unimi.dsi.fastutil.longs.LongSet> ForgeChunkManager.TicketTracker.getTickets
(boolean ticking) Map<ForgeChunkManager.TicketOwner<T>,
it.unimi.dsi.fastutil.longs.LongSet> ForgeChunkManager.TicketTracker.getTickingChunks()
Gets an unmodifiable view of the tracked fully ticking chunks.Modifier and TypeMethodDescriptionprivate boolean
ForgeChunkManager.TicketTracker.add
(ForgeChunkManager.TicketOwner<T> owner, long chunk, boolean ticking) int
ForgeChunkManager.TicketOwner.compareTo
(ForgeChunkManager.TicketOwner<T> other) 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 boolean
ForgeChunkManager.TicketTracker.remove
(ForgeChunkManager.TicketOwner<T> owner, long chunk, boolean 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.gatherTicketsByModId
(Map<ForgeChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> tickets, Function<com.mojang.datafixers.util.Pair<it.unimi.dsi.fastutil.longs.LongSet, it.unimi.dsi.fastutil.longs.LongSet>, it.unimi.dsi.fastutil.longs.LongSet> typeGetter, Map<String, Map<T, com.mojang.datafixers.util.Pair<it.unimi.dsi.fastutil.longs.LongSet, it.unimi.dsi.fastutil.longs.LongSet>>> modSortedOwnedChunks) Gathers tickets into a mod filtered map for use in providing all tickets a mod has registered to itsForgeChunkManager.LoadingValidationCallback
.private static void
ForgeChunkManager.readBlockForcedChunks
(String modId, long chunkPos, CompoundNBT modEntry, String key, Map<ForgeChunkManager.TicketOwner<BlockPos>, it.unimi.dsi.fastutil.longs.LongSet> blockForcedChunks) Reads the forge block forced chunks.private static void
ForgeChunkManager.readEntityForcedChunks
(String modId, long chunkPos, CompoundNBT modEntry, String key, Map<ForgeChunkManager.TicketOwner<UUID>, it.unimi.dsi.fastutil.longs.LongSet> entityForcedChunks) Reads the forge entity 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.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.