net.minecraft.world.ticks

public class LevelTicks<T>

implements LevelTickAccess<T>

fdn
net.minecraft.world.ticks.LevelTicks
net.minecraft.class_6757
net.minecraft.world.tick.WorldTickScheduler
net.minecraft.world.ticks.TickListServer

Field summary

Modifier and TypeField
private static final Comparator<LevelChunkTicks<?>>
a
CONTAINER_DRAIN_ORDER
field_35531
COMPARATOR
private final LongPredicate
b
tickCheck
field_35532
tickingFutureReadyPredicate
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<LevelChunkTicks<T>>
c
allContainers
field_35534
chunkTickSchedulers
private final it.unimi.dsi.fastutil.longs.Long2LongMap
d
nextTickForContainer
field_35535
nextTriggerTickByChunkPos
private final Queue<LevelChunkTicks<T>>
e
containersToTick
field_35536
tickableChunkTickSchedulers
private final Queue<ScheduledTick<T>>
f
toRunThisTick
field_35537
tickableTicks
private final List<ScheduledTick<T>>
g
alreadyRunThisTick
field_35538
tickedTicks
private final Set<ScheduledTick<?>>
h
toRunThisTickSet
field_35539
copiedTickableTicksList
private final BiConsumer<LevelChunkTicks<T>, ScheduledTick<T>>
i
chunkScheduleUpdater
field_35540
queuedTickConsumer

Constructor summary

ModifierConstructor
public (LongPredicate tickingFutureReadyPredicate)

Method summary

Modifier and TypeMethod
public void
a(dgo arg0, fdl<T> arg1)
addContainer(ChunkPos arg0, LevelChunkTicks<T> arg1)
method_39379(class_1923 arg0, class_6755<T> arg1)
addChunkTickScheduler(ChunkPos pos, ChunkTickScheduler<T> scheduler)
public void
a(dgo arg0)
removeContainer(ChunkPos arg0)
method_39378(class_1923 arg0)
removeChunkTickScheduler(ChunkPos pos)
public void
a(fdq<T> arg0)
schedule(ScheduledTick<T> arg0)
method_39363(class_6760<T> arg0)
scheduleTick(OrderedTick<T> arg0)
public void
a(long arg0, int arg1, BiConsumer<jh, T> arg2)
tick(long arg0, int arg1, BiConsumer<BlockPos, T> arg2)
method_39377(long arg0, int arg1, BiConsumer<class_2338, T> arg2)
tick(long time, int maxTicks, BiConsumer<BlockPos, T> ticker)
private void
a(long arg0, int arg1, bpt arg2)
collectTicks(long arg0, int arg1, ProfilerFiller arg2)
method_39376(long arg0, int arg1, class_3695 arg2)
collectTickableTicks(long time, int maxTicks, Profiler profiler)
private void
a(long arg0)
sortContainersToTick(long arg0)
method_39374(long arg0)
collectTickableChunkTickSchedulers(long time)
private void
a(long arg0, int arg1)
drainContainers(long arg0, int arg1)
method_39375(long arg0, int arg1)
addTickableTicks(long time, int maxTicks)
private void
b()
rescheduleLeftoverContainers()
method_39392()
delayAllTicks()
private void
b(fdq<T> arg0)
updateContainerScheduling(ScheduledTick<T> arg0)
method_39393(class_6760<T> arg0)
schedule(OrderedTick<T> tick)
private void
a(Queue<fdl<T>> arg0, fdl<T> arg1, long arg2, int arg3)
drainFromCurrentContainer(Queue<LevelChunkTicks<T>> arg0, LevelChunkTicks<T> arg1, long arg2, int arg3)
method_39389(Queue<class_6755<T>> arg0, class_6755<T> arg1, long arg2, int arg3)
addTickableTicks(Queue<ChunkTickScheduler<T>> tickableChunkTickSchedulers, ChunkTickScheduler<T> chunkTickScheduler, long tick, int maxTicks)
private void
c(fdq<T> arg0)
scheduleForThisTick(ScheduledTick<T> arg0)
method_39395(class_6760<T> arg0)
addTickableTick(OrderedTick<T> tick)
private boolean
a(int arg0)
canScheduleMoreTicks(int arg0)
method_39373(int arg0)
isTickableTicksCountUnder(int maxTicks)
private void
a(BiConsumer<jh, T> arg0)
runCollectedTicks(BiConsumer<BlockPos, T> arg0)
method_39390(BiConsumer<class_2338, T> arg0)
tick(BiConsumer<BlockPos, T> ticker)
private void
c()
cleanupAfterTick()
method_39394()
clear()
public boolean
a(jh arg0, T arg1)
hasScheduledTick(BlockPos arg0, T arg1)
method_8674(class_2338 arg0, T arg1)
isQueued(BlockPos arg0, T arg1)
public boolean
b(jh arg0, T arg1)
willTickThisTick(BlockPos arg0, T arg1)
method_8677(class_2338 arg0, T arg1)
isTicking(BlockPos arg0, T arg1)
private void
d()
calculateTickSetIfNeeded()
method_39396()
copyTickableTicksList()
private void
a(eoc arg0, fdn$a<T> arg1)
forContainersInArea(BoundingBox arg0, LevelTicks$PosAndContainerConsumer<T> arg1)
method_39381(class_3341 arg0, class_6757$class_6758<T> arg1)
visitChunks(BlockBox box, WorldTickScheduler$ChunkVisitor<T> visitor)
public void
a(eoc arg0)
clearArea(BoundingBox arg0)
method_39380(class_3341 arg0)
clearNextTicks(BlockBox box)
public void
a(eoc arg0, kl arg1)
copyArea(BoundingBox arg0, Vec3i arg1)
method_39383(class_3341 arg0, class_2382 arg1)
scheduleTicks(BlockBox box, Vec3i offset)
public void
a(fdn<T> arg0, eoc arg1, kl arg2)
copyAreaFrom(LevelTicks<T> arg0, BoundingBox arg1, Vec3i arg2)
method_48167(class_6757<T> arg0, class_3341 arg1, class_2382 arg2)
scheduleTicks(WorldTickScheduler<T> scheduler, BlockBox box, Vec3i offset)
public int
a()
count()
method_20825()
getTickCount()