Package net.minecraft.world.level
Class ChunkTickList<T>
java.lang.Object
net.minecraft.world.level.ChunkTickList<T>
- All Implemented Interfaces:
TickList<T>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate List<ChunkTickList.ScheduledTick<T>>
private Function<T,ResourceLocation>
-
Constructor Summary
ModifierConstructorDescriptionprivate
ChunkTickList(Function<T,ResourceLocation> p_45634_, List<ChunkTickList.ScheduledTick<T>> p_45635_)
ChunkTickList(Function<T,ResourceLocation> p_45637_, List<TickNextTickData<T>> p_45638_, long p_45639_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> ChunkTickList<T>
create(ListTag p_45657_, Function<T,ResourceLocation> p_45658_, Function<ResourceLocation,T> p_45659_)
boolean
hasScheduledTick(BlockPos p_45649_, T p_45650_)
save()
void
scheduleTick(BlockPos p_45652_, T p_45653_, int p_45654_, TickPriority p_45655_)
int
size()
boolean
willTickThisTick(BlockPos p_45662_, T p_45663_)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.TickList
scheduleTick
-
Field Details
-
ticks
-
toId
-
-
Constructor Details
-
ChunkTickList
public ChunkTickList(Function<T,ResourceLocation> p_45637_, List<TickNextTickData<T>> p_45638_, long p_45639_) -
ChunkTickList
private ChunkTickList(Function<T,ResourceLocation> p_45634_, List<ChunkTickList.ScheduledTick<T>> p_45635_)
-
-
Method Details
-
hasScheduledTick
- Specified by:
hasScheduledTick
in interfaceTickList<T>
-
scheduleTick
- Specified by:
scheduleTick
in interfaceTickList<T>
-
willTickThisTick
- Specified by:
willTickThisTick
in interfaceTickList<T>
-
save
-
create
public static <T> ChunkTickList<T> create(ListTag p_45657_, Function<T,ResourceLocation> p_45658_, Function<ResourceLocation,T> p_45659_) -
copyOut
-
size
public int size()
-