net.minecraft.world.ticks

public class LevelTicks<T>

implements LevelTickAccess<T>

eiw
net.minecraft.world.ticks.LevelTicks
net.minecraft.class_6757
net.minecraft.world.tick.WorldTickScheduler
net.minecraft.src.C_183042_
net.minecraft.world.ticks.TickListServer

Field summary

Modifier and TypeField
private static final Comparator<LevelChunkTicks<?>>
a
CONTAINER_DRAIN_ORDER
field_35531
COMPARATOR
f_193199_
private final LongPredicate
b
tickCheck
field_35532
tickingFutureReadyPredicate
f_193200_
private final Supplier<ProfilerFiller>
c
profiler
field_35533
profilerGetter
f_193201_
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<LevelChunkTicks<T>>
d
allContainers
field_35534
chunkTickSchedulers
f_193202_
private final it.unimi.dsi.fastutil.longs.Long2LongMap
e
nextTickForContainer
field_35535
nextTriggerTickByChunkPos
f_193203_
private final Queue<LevelChunkTicks<T>>
f
containersToTick
field_35536
tickableChunkTickSchedulers
f_193204_
private final Queue<ScheduledTick<T>>
g
toRunThisTick
field_35537
tickableTicks
f_193205_
private final List<ScheduledTick<T>>
h
alreadyRunThisTick
field_35538
tickedTicks
f_193206_
private final Set<ScheduledTick<?>>
i
toRunThisTickSet
field_35539
copiedTickableTicksList
f_193207_
private final BiConsumer<LevelChunkTicks<T>, ScheduledTick<T>>
j
chunkScheduleUpdater
field_35540
queuedTickConsumer
f_193208_

Constructor summary

ModifierConstructor
public (LongPredicate tickingFutureReadyPredicate, Supplier<ProfilerFiller> profilerGetter)

Method summary

Modifier and TypeMethod
public void
a(cpc arg0, eiu<T> arg1)
addContainer(ChunkPos arg0, LevelChunkTicks<T> arg1)
method_39379(class_1923 arg0, class_6755<T> arg1)
addChunkTickScheduler(ChunkPos pos, ChunkTickScheduler<T> scheduler)
m_193231_(C_1560_ p_193233_, C_183040_<T> arg1)
public void
a(cpc arg0)
removeContainer(ChunkPos arg0)
method_39378(class_1923 arg0)
removeChunkTickScheduler(ChunkPos pos)
m_193229_(C_1560_ arg0)
public void
a(eiz<T> arg0)
schedule(ScheduledTick<T> arg0)
method_39363(class_6760<T> arg0)
scheduleTick(OrderedTick<T> arg0)
m_183393_(C_183047_<T> arg0)
public void
a(long arg0, int arg1, BiConsumer<gw, 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)
m_193225_(long p_193227_, int arg1, BiConsumer<C_4675_, T> arg2)
private void
a(long arg0, int arg1, bdp arg2)
collectTicks(long arg0, int arg1, ProfilerFiller arg2)
method_39376(long arg0, int arg1, class_3695 arg2)
collectTickableTicks(long time, int maxTicks, Profiler profiler)
m_193221_(long p_193223_, int arg1, C_442_ arg2)
private void
a(long arg0)
sortContainersToTick(long arg0)
method_39374(long arg0)
collectTickableChunkTickSchedulers(long time)
m_193216_(long arg0)
private void
a(long arg0, int arg1)
drainContainers(long arg0, int arg1)
method_39375(long arg0, int arg1)
addTickableTicks(long time, int maxTicks)
m_193218_(long p_193220_, int arg1)
private void
b()
rescheduleLeftoverContainers()
method_39392()
delayAllTicks()
m_193278_()
private void
b(eiz<T> arg0)
updateContainerScheduling(ScheduledTick<T> arg0)
method_39393(class_6760<T> arg0)
schedule(OrderedTick<T> tick)
m_193279_(C_183047_<T> arg0)
private void
a(Queue<eiu<T>> arg0, eiu<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)
m_193267_(Queue<C_183040_<T>> p_193269_, C_183040_<T> p_193270_, long p_193271_, int arg3)
private void
c(eiz<T> arg0)
scheduleForThisTick(ScheduledTick<T> arg0)
method_39395(class_6760<T> arg0)
addTickableTick(OrderedTick<T> tick)
m_193285_(C_183047_<T> arg0)
private boolean
a(int arg0)
canScheduleMoreTicks(int arg0)
method_39373(int arg0)
isTickableTicksCountUnder(int maxTicks)
m_193214_(int arg0)
private void
a(BiConsumer<gw, T> arg0)
runCollectedTicks(BiConsumer<BlockPos, T> arg0)
method_39390(BiConsumer<class_2338, T> arg0)
tick(BiConsumer<BlockPos, T> ticker)
m_193272_(BiConsumer<C_4675_, T> arg0)
private void
c()
cleanupAfterTick()
method_39394()
clear()
m_193284_()
public boolean
a(gw arg0, T arg1)
hasScheduledTick(BlockPos arg0, T arg1)
method_8674(class_2338 arg0, T arg1)
isQueued(BlockPos arg0, T arg1)
m_183582_(C_4675_ p_193255_, T arg1)
public boolean
b(gw arg0, T arg1)
willTickThisTick(BlockPos arg0, T arg1)
method_8677(class_2338 arg0, T arg1)
isTicking(BlockPos arg0, T arg1)
m_183588_(C_4675_ p_193283_, T arg1)
private void
d()
calculateTickSetIfNeeded()
method_39396()
copyTickableTicksList()
m_193287_()
private void
a(dva arg0, eiw$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)
m_193236_(C_2478_ p_193238_, C_183042_$C_183043_<T> arg1)
public void
a(dva arg0)
clearArea(BoundingBox arg0)
method_39380(class_3341 arg0)
clearNextTicks(BlockBox box)
m_193234_(C_2478_ arg0)
public void
a(dva arg0, hy arg1)
copyArea(BoundingBox arg0, Vec3i arg1)
method_39383(class_3341 arg0, class_2382 arg1)
scheduleTicks(BlockBox box, Vec3i offset)
m_193242_(C_2478_ p_193244_, C_4713_ arg1)
public void
a(eiw<T> arg0, dva arg1, hy 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)
m_264560_(C_183042_<T> p_265172_, C_2478_ p_265318_, C_4713_ arg2)
public int
a()
count()
method_20825()
getTickCount()
m_183574_()