Package net.minecraft.world
Class SerializableTickList<T>
- java.lang.Object
-
- net.minecraft.world.SerializableTickList<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SerializableTickList.TickHolder<T>
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<SerializableTickList.TickHolder<T>>
ticks
private java.util.function.Function<T,ResourceLocation>
toId
-
Constructor Summary
Constructors Modifier Constructor Description SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i231603_1_, java.util.List<NextTickListEntry<T>> p_i231603_2_, long p_i231603_3_)
private
SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i50010_1_, java.util.List<SerializableTickList.TickHolder<T>> p_i50010_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyOut(ITickList<T> p_234855_1_)
static <T> SerializableTickList<T>
create(ListNBT p_222984_0_, java.util.function.Function<T,ResourceLocation> p_222984_1_, java.util.function.Function<ResourceLocation,T> p_222984_2_)
boolean
hasScheduledTick(BlockPos p_205359_1_, T p_205359_2_)
ListNBT
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 Detail
-
ticks
private final java.util.List<SerializableTickList.TickHolder<T>> ticks
-
toId
private final java.util.function.Function<T,ResourceLocation> toId
-
-
Constructor Detail
-
SerializableTickList
public SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i231603_1_, java.util.List<NextTickListEntry<T>> p_i231603_2_, long p_i231603_3_)
-
SerializableTickList
private SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i50010_1_, java.util.List<SerializableTickList.TickHolder<T>> p_i50010_2_)
-
-
Method Detail
-
hasScheduledTick
public boolean hasScheduledTick(BlockPos p_205359_1_, T p_205359_2_)
- 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
public boolean willTickThisTick(BlockPos p_205361_1_, T p_205361_2_)
- Specified by:
willTickThisTick
in interfaceITickList<T>
-
save
public ListNBT save()
-
create
public static <T> SerializableTickList<T> create(ListNBT p_222984_0_, java.util.function.Function<T,ResourceLocation> p_222984_1_, java.util.function.Function<ResourceLocation,T> p_222984_2_)
-
-