Package net.minecraft.world.ticks
Class LevelChunkTicks<T>
java.lang.Object
net.minecraft.world.ticks.LevelChunkTicks<T>
- All Implemented Interfaces:
SerializableTickContainer<T>
,TickAccess<T>
,TickContainerAccess<T>
public class LevelChunkTicks<T>
extends Object
implements SerializableTickContainer<T>, TickContainerAccess<T>
-
Field Summary
Modifier and TypeFieldDescriptionprivate BiConsumer
<LevelChunkTicks<T>, ScheduledTick<T>> private final Queue
<ScheduledTick<T>> private final Set
<ScheduledTick<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
count()
getAll()
boolean
hasScheduledTick
(BlockPos p_193179_, T p_193180_) static <T> LevelChunkTicks
<T> peek()
poll()
void
removeIf
(Predicate<ScheduledTick<T>> p_193184_) void
schedule
(ScheduledTick<T> p_193177_) private void
scheduleUnchecked
(ScheduledTick<T> p_193194_) void
setOnTickAdded
(BiConsumer<LevelChunkTicks<T>, ScheduledTick<T>> p_193182_) void
unpack
(long p_193172_)
-
Field Details
-
tickQueue
-
pendingTicks
-
ticksPerPosition
-
onTickAdded
-
-
Constructor Details
-
LevelChunkTicks
public LevelChunkTicks() -
LevelChunkTicks
-
-
Method Details
-
setOnTickAdded
-
peek
-
poll
-
schedule
- Specified by:
schedule
in interfaceTickAccess<T>
-
scheduleUnchecked
-
hasScheduledTick
- Specified by:
hasScheduledTick
in interfaceTickAccess<T>
-
removeIf
-
getAll
-
count
public int count()- Specified by:
count
in interfaceTickAccess<T>
-
save
- Specified by:
save
in interfaceSerializableTickContainer<T>
-
unpack
public void unpack(long p_193172_) -
load
-