Modifier and Type | Field and Description |
---|---|
private java.util.Set<NextTickListEntry<T>> |
ticks |
private java.util.function.Function<T,ResourceLocation> |
toId |
Modifier | Constructor and Description |
---|---|
|
SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i50010_1_,
java.util.List<NextTickListEntry<T>> p_i50010_2_) |
private |
SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i51499_1_,
java.util.Set<NextTickListEntry<T>> p_i51499_2_) |
Modifier and Type | Method and Description |
---|---|
void |
addAll(java.util.stream.Stream<NextTickListEntry<T>> p_219497_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 |
isTickPending(BlockPos pos,
T obj) |
boolean |
isTickScheduled(BlockPos pos,
T itemIn) |
ListNBT |
save(long p_219498_1_) |
void |
scheduleTick(BlockPos pos,
T itemIn,
int scheduledTime,
TickPriority priority) |
java.util.stream.Stream<NextTickListEntry<T>> |
ticks() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
scheduleTick
private final java.util.Set<NextTickListEntry<T>> ticks
private final java.util.function.Function<T,ResourceLocation> toId
public SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i50010_1_, java.util.List<NextTickListEntry<T>> p_i50010_2_)
private SerializableTickList(java.util.function.Function<T,ResourceLocation> p_i51499_1_, java.util.Set<NextTickListEntry<T>> p_i51499_2_)
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_)
public java.util.stream.Stream<NextTickListEntry<T>> ticks()
public ListNBT save(long p_219498_1_)
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_)