类 ForgeChunkManager.TicketTracker<T extends Comparable<? super T>>
java.lang.Object
net.minecraftforge.common.world.ForgeChunkManager.TicketTracker<T>
- 封闭类:
ForgeChunkManager
Helper class to manage tracking and handling loaded tickets.
-
字段概要
字段修饰符和类型字段说明private final Map
<ForgeChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> private final Map
<ForgeChunkManager.TicketOwner<T>, it.unimi.dsi.fastutil.longs.LongSet> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private boolean
add
(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.boolean
isEmpty()
Checks if this tracker is empty.private boolean
remove
(ForgeChunkManager.TicketOwner<T> owner, long chunk, boolean ticking)
-
字段详细资料
-
chunks
private final Map<ForgeChunkManager.TicketOwner<T extends Comparable<? super T>>,it.unimi.dsi.fastutil.longs.LongSet> chunks -
tickingChunks
private final Map<ForgeChunkManager.TicketOwner<T extends Comparable<? super T>>,it.unimi.dsi.fastutil.longs.LongSet> tickingChunks
-
-
构造器详细资料
-
TicketTracker
public TicketTracker()
-
-
方法详细资料
-
getChunks
Gets an unmodifiable view of the tracked chunks. -
getTickingChunks
Gets an unmodifiable view of the tracked fully ticking chunks. -
isEmpty
public boolean isEmpty()Checks if this tracker is empty.- 返回:
true
if there are no chunks or ticking chunks being tracked.
-
getTickets
private Map<ForgeChunkManager.TicketOwner<T>,it.unimi.dsi.fastutil.longs.LongSet> getTickets(boolean ticking) -
remove
- 返回:
true
if the state changed.
-
add
- 返回:
true
if the state changed.
-