net.minecraft.world.ticks

public class LevelChunkTicks<T>

implements SerializableTickContainer<T>, TickContainerAccess<T>

fco
net.minecraft.world.ticks.LevelChunkTicks
net.minecraft.class_6755
net.minecraft.world.tick.ChunkTickScheduler
net.minecraft.world.ticks.LevelChunkTicks

Field summary

Modifier and TypeField
private final Queue<ScheduledTick<T>>
a
tickQueue
field_35527
tickQueue
private List<SavedTick<T>>
b
pendingTicks
field_35528
ticks
private final Set<ScheduledTick<?>>
c
ticksPerPosition
field_35529
queuedTicks
private BiConsumer<LevelChunkTicks<T>, ScheduledTick<T>>
d
onTickAdded
field_35530
tickConsumer

Constructor summary

ModifierConstructor
public ()
public (List<SavedTick<T>> ticks)

Method summary

Modifier and TypeMethod
public void
a(BiConsumer<fco<T>, fct<T>> arg0)
setOnTickAdded(BiConsumer<LevelChunkTicks<T>, ScheduledTick<T>> arg0)
method_39366(BiConsumer<class_6755<T>, class_6760<T>> arg0)
setTickConsumer(BiConsumer<ChunkTickScheduler<T>, OrderedTick<T>> tickConsumer)
public ScheduledTick<T>
b()
peek()
method_39369()
peekNextTick()
public ScheduledTick<T>
c()
poll()
method_39371()
pollNextTick()
public void
a(fct<T> arg0)
schedule(ScheduledTick<T> arg0)
method_39363(class_6760<T> arg0)
scheduleTick(OrderedTick<T> arg0)
private void
b(fct<T> arg0)
scheduleUnchecked(ScheduledTick<T> arg0)
method_39370(class_6760<T> arg0)
queueTick(OrderedTick<T> orderedTick)
public boolean
a(ji arg0, T arg1)
hasScheduledTick(BlockPos arg0, T arg1)
method_8674(class_2338 arg0, T arg1)
isQueued(BlockPos arg0, T arg1)
public void
a(Predicate<fct<T>> arg0)
removeIf(Predicate<ScheduledTick<T>> arg0)
method_39367(Predicate<class_6760<T>> arg0)
removeTicksIf(Predicate<OrderedTick<T>> predicate)
public Stream<ScheduledTick<T>>
d()
getAll()
method_39372()
getQueueAsStream()
public int
a()
count()
method_20825()
getTickCount()
public List<SavedTick<T>>
a(long arg0)
pack(long arg0)
method_61898(long arg0)
collectTicks(long arg0)
public ListTag
a(long arg0, Function<T, String> arg1)
save(long arg0, Function<T, String> arg1)
method_39365(long arg0, Function<T, String> arg1)
toNbt(long time, Function<T, String> typeToNameFunction)
public void
b(long arg0)
unpack(long arg0)
method_39364(long arg0)
disable(long time)
public static <T> LevelChunkTicks<T>
a(tw arg0, Function<String, Optional<T>> arg1, dfp arg2)
load(ListTag arg0, Function<String, Optional<T>> arg1, ChunkPos arg2)
method_39368(class_2499 arg0, Function<String, Optional<T>> arg1, class_1923 arg2)
create(NbtList tickQueue, Function<String, Optional<T>> nameToTypeFunction, ChunkPos pos)