Package net.minecraftforge.common.world
Class ForgeChunkManager.TicketTracker<T extends Comparable<? super T>>
java.lang.Object
net.minecraftforge.common.world.ForgeChunkManager.TicketTracker<T>
- Enclosing class:
- ForgeChunkManager
Helper class to manage tracking and handling loaded tickets.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> private final Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate booleanadd(ForgeChunkManager.TicketOwner<T> owner, long chunk, boolean ticking) Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> Gets an unmodifiable view of the tracked chunks.private Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> getTickets(boolean ticking) Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> Gets an unmodifiable view of the tracked fully ticking chunks.booleanisEmpty()Checks if this tracker is empty.private booleanremove(ForgeChunkManager.TicketOwner<T> owner, long chunk, boolean ticking) 
- 
Field Details- 
chunksprivate final Map<ForgeChunkManager.TicketOwner<T extends Comparable<? super T>>,it.unimi.dsi.fastutil.longs.LongSet> chunks
- 
tickingChunksprivate final Map<ForgeChunkManager.TicketOwner<T extends Comparable<? super T>>,it.unimi.dsi.fastutil.longs.LongSet> tickingChunks
 
- 
- 
Constructor Details- 
TicketTrackerpublic TicketTracker()
 
- 
- 
Method Details- 
getChunksGets an unmodifiable view of the tracked chunks.
- 
getTickingChunksGets an unmodifiable view of the tracked fully ticking chunks.
- 
isEmptypublic boolean isEmpty()Checks if this tracker is empty.- Returns:
- trueif there are no chunks or ticking chunks being tracked.
 
- 
getTicketsprivate Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> getTickets(boolean ticking) 
- 
remove- Returns:
- trueif the state changed.
 
- 
add- Returns:
- trueif the state changed.
 
 
-