Class LevelTicks<T>

java.lang.Object
net.minecraft.world.ticks.LevelTicks<T>
All Implemented Interfaces:
LevelTickAccess<T>, TickAccess<T>

public class LevelTicks<T> extends Object implements LevelTickAccess<T>
  • Field Details

  • Constructor Details

  • Method Details

    • addContainer

      public void addContainer(ChunkPos p_193232_, LevelChunkTicks<T> p_193233_)
    • removeContainer

      public void removeContainer(ChunkPos p_193230_)
    • schedule

      public void schedule(ScheduledTick<T> p_193252_)
      Specified by:
      schedule in interface TickAccess<T>
    • tick

      public void tick(long p_193226_, int p_193227_, BiConsumer<BlockPos,T> p_193228_)
    • collectTicks

      private void collectTicks(long p_193222_, int p_193223_, ProfilerFiller p_193224_)
    • sortContainersToTick

      private void sortContainersToTick(long p_193217_)
    • drainContainers

      private void drainContainers(long p_193219_, int p_193220_)
    • rescheduleLeftoverContainers

      private void rescheduleLeftoverContainers()
    • updateContainerScheduling

      private void updateContainerScheduling(ScheduledTick<T> p_193280_)
    • drainFromCurrentContainer

      private void drainFromCurrentContainer(Queue<LevelChunkTicks<T>> p_193268_, LevelChunkTicks<T> p_193269_, long p_193270_, int p_193271_)
    • scheduleForThisTick

      private void scheduleForThisTick(ScheduledTick<T> p_193286_)
    • canScheduleMoreTicks

      private boolean canScheduleMoreTicks(int p_193215_)
    • runCollectedTicks

      private void runCollectedTicks(BiConsumer<BlockPos,T> p_193273_)
    • cleanupAfterTick

      private void cleanupAfterTick()
    • hasScheduledTick

      public boolean hasScheduledTick(BlockPos p_193254_, T p_193255_)
      Specified by:
      hasScheduledTick in interface TickAccess<T>
    • willTickThisTick

      public boolean willTickThisTick(BlockPos p_193282_, T p_193283_)
      Specified by:
      willTickThisTick in interface LevelTickAccess<T>
    • calculateTickSetIfNeeded

      private void calculateTickSetIfNeeded()
    • forContainersInArea

      private void forContainersInArea(BoundingBox p_193237_, LevelTicks.PosAndContainerConsumer<T> p_193238_)
    • clearArea

      public void clearArea(BoundingBox p_193235_)
    • copyArea

      public void copyArea(BoundingBox p_193243_, Vec3i p_193244_)
    • copyAreaFrom

      public void copyAreaFrom(LevelTicks<T> p_265554_, BoundingBox p_265172_, Vec3i p_265318_)
    • count

      public int count()
      Specified by:
      count in interface TickAccess<T>