Modifier and Type | Field and Description |
---|---|
protected java.util.function.Predicate<T> |
filter |
private it.unimi.dsi.fastutil.shorts.ShortList[] |
packedPositions |
private ChunkPos |
pos |
Constructor and Description |
---|
ChunkPrimerTickList(java.util.function.Predicate<T> p_i51495_1_,
ChunkPos p_i51495_2_) |
ChunkPrimerTickList(java.util.function.Predicate<T> p_i51496_1_,
ChunkPos p_i51496_2_,
ListNBT p_i51496_3_) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(java.util.stream.Stream<NextTickListEntry<T>> p_219497_1_) |
boolean |
isTickPending(BlockPos pos,
T obj) |
boolean |
isTickScheduled(BlockPos pos,
T itemIn) |
void |
postProcess(ITickList<T> tickList,
java.util.function.Function<BlockPos,T> func) |
void |
scheduleTick(BlockPos pos,
T itemIn,
int scheduledTime,
TickPriority priority) |
ListNBT |
write() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
scheduleTick
protected final java.util.function.Predicate<T> filter
private final ChunkPos pos
private final it.unimi.dsi.fastutil.shorts.ShortList[] packedPositions
public ChunkPrimerTickList(java.util.function.Predicate<T> p_i51495_1_, ChunkPos p_i51495_2_)
public ListNBT write()
public void postProcess(ITickList<T> tickList, java.util.function.Function<BlockPos,T> func)
public boolean isTickScheduled(BlockPos pos, T itemIn)
isTickScheduled
in interface ITickList<T>
public void scheduleTick(BlockPos pos, T itemIn, int scheduledTime, TickPriority priority)
scheduleTick
in interface ITickList<T>
public boolean isTickPending(BlockPos pos, T obj)
isTickPending
in interface ITickList<T>
public void addAll(java.util.stream.Stream<NextTickListEntry<T>> p_219497_1_)