Package net.minecraft.world
Class SerializableTickList<T>
java.lang.Object
net.minecraft.world.SerializableTickList<T>
- All Implemented Interfaces:
ITickList<T>
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<SerializableTickList.TickHolder<T>>
private final Function<T,
ResourceLocation> -
Constructor Summary
ModifierConstructorDescriptionSerializableTickList
(Function<T, ResourceLocation> p_i231603_1_, List<NextTickListEntry<T>> p_i231603_2_, long p_i231603_3_) private
SerializableTickList
(Function<T, ResourceLocation> p_i50010_1_, List<SerializableTickList.TickHolder<T>> p_i50010_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static <T> SerializableTickList<T>
create
(ListNBT p_222984_0_, Function<T, ResourceLocation> p_222984_1_, Function<ResourceLocation, T> p_222984_2_) boolean
hasScheduledTick
(BlockPos p_205359_1_, T p_205359_2_) save()
void
scheduleTick
(BlockPos p_205362_1_, T p_205362_2_, int p_205362_3_, TickPriority p_205362_4_) boolean
willTickThisTick
(BlockPos p_205361_1_, T p_205361_2_) 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.ITickList
scheduleTick
-
Field Details
-
ticks
-
toId
-
-
Constructor Details
-
SerializableTickList
public SerializableTickList(Function<T, ResourceLocation> p_i231603_1_, List<NextTickListEntry<T>> p_i231603_2_, long p_i231603_3_) -
SerializableTickList
private SerializableTickList(Function<T, ResourceLocation> p_i50010_1_, List<SerializableTickList.TickHolder<T>> p_i50010_2_)
-
-
Method Details
-
hasScheduledTick
- Specified by:
hasScheduledTick
in interfaceITickList<T>
-
scheduleTick
public void scheduleTick(BlockPos p_205362_1_, T p_205362_2_, int p_205362_3_, TickPriority p_205362_4_) - Specified by:
scheduleTick
in interfaceITickList<T>
-
willTickThisTick
- Specified by:
willTickThisTick
in interfaceITickList<T>
-
save
-
create
public static <T> SerializableTickList<T> create(ListNBT p_222984_0_, Function<T, ResourceLocation> p_222984_1_, Function<ResourceLocation, T> p_222984_2_) -
copyOut
-