Class ChunkTickScheduler<T>

java.lang.Object
net.minecraft.world.ChunkTickScheduler<T>
All Implemented Interfaces:
TickScheduler<T>

public class ChunkTickScheduler<T> extends Object implements TickScheduler<T>
Mappings:
Namespace Name
official cnf
intermediary net/minecraft/class_2850
named net/minecraft/world/ChunkTickScheduler
  • Field Details

    • shouldExclude

      protected final Predicate<T> shouldExclude
      Mappings:
      Namespace Name Mixin selector
      official a Lcnf;a:Ljava/util/function/Predicate;
      intermediary field_12991 Lnet/minecraft/class_2850;field_12991:Ljava/util/function/Predicate;
      named shouldExclude Lnet/minecraft/world/ChunkTickScheduler;shouldExclude:Ljava/util/function/Predicate;
    • pos

      private final ChunkPos pos
      Mappings:
      Namespace Name Mixin selector
      official b Lcnf;b:Lbvu;
      intermediary field_12993 Lnet/minecraft/class_2850;field_12993:Lnet/minecraft/class_1923;
      named pos Lnet/minecraft/world/ChunkTickScheduler;pos:Lnet/minecraft/util/math/ChunkPos;
    • scheduledPositions

      private final ShortList[] scheduledPositions
      Mappings:
      Namespace Name Mixin selector
      official c Lcnf;c:[Lit/unimi/dsi/fastutil/shorts/ShortList;
      intermediary field_12990 Lnet/minecraft/class_2850;field_12990:[Lit/unimi/dsi/fastutil/shorts/ShortList;
      named scheduledPositions Lnet/minecraft/world/ChunkTickScheduler;scheduledPositions:[Lit/unimi/dsi/fastutil/shorts/ShortList;
    • world

      private HeightLimitView world
      Mappings:
      Namespace Name Mixin selector
      official d Lcnf;d:Lbwr;
      intermediary field_27230 Lnet/minecraft/class_2850;field_27230:Lnet/minecraft/class_5539;
      named world Lnet/minecraft/world/ChunkTickScheduler;world:Lnet/minecraft/world/HeightLimitView;
  • Constructor Details

    • ChunkTickScheduler

      public ChunkTickScheduler(Predicate<T> shouldExclude, ChunkPos pos, HeightLimitView world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcnf;<init>(Ljava/util/function/Predicate;Lbvu;Lbwr;)V
      intermediary <init> Lnet/minecraft/class_2850;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_1923;Lnet/minecraft/class_5539;)V
      named <init> Lnet/minecraft/world/ChunkTickScheduler;<init>(Ljava/util/function/Predicate;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/HeightLimitView;)V
    • ChunkTickScheduler

      public ChunkTickScheduler(Predicate<T> shouldExclude, ChunkPos pos, NbtList nbtList, HeightLimitView world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcnf;<init>(Ljava/util/function/Predicate;Lbvu;Lng;Lbwr;)V
      intermediary <init> Lnet/minecraft/class_2850;<init>(Ljava/util/function/Predicate;Lnet/minecraft/class_1923;Lnet/minecraft/class_2499;Lnet/minecraft/class_5539;)V
      named <init> Lnet/minecraft/world/ChunkTickScheduler;<init>(Ljava/util/function/Predicate;Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtList;Lnet/minecraft/world/HeightLimitView;)V
  • Method Details

    • toNbt

      public NbtList toNbt()
      Mappings:
      Namespace Name Mixin selector
      official b Lcnf;b()Lng;
      intermediary method_12367 Lnet/minecraft/class_2850;method_12367()Lnet/minecraft/class_2499;
      named toNbt Lnet/minecraft/world/ChunkTickScheduler;toNbt()Lnet/minecraft/nbt/NbtList;
    • tick

      public void tick(TickScheduler<T> scheduler, Function<BlockPos,​T> dataMapper)
      Mappings:
      Namespace Name Mixin selector
      official a Lcnf;a(Lbxh;Ljava/util/function/Function;)V
      intermediary method_12368 Lnet/minecraft/class_2850;method_12368(Lnet/minecraft/class_1951;Ljava/util/function/Function;)V
      named tick Lnet/minecraft/world/ChunkTickScheduler;tick(Lnet/minecraft/world/TickScheduler;Ljava/util/function/Function;)V
    • isScheduled

      public boolean isScheduled(BlockPos pos, T object)
      Specified by:
      isScheduled in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lbxh;a(Lgg;Ljava/lang/Object;)Z
      intermediary method_8674 Lnet/minecraft/class_1951;method_8674(Lnet/minecraft/class_2338;Ljava/lang/Object;)Z
      named isScheduled Lnet/minecraft/world/TickScheduler;isScheduled(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
    • schedule

      public void schedule(BlockPos pos, T object, int delay, TickPriority priority)
      Specified by:
      schedule in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lbxh;a(Lgg;Ljava/lang/Object;ILbxj;)V
      intermediary method_8675 Lnet/minecraft/class_1951;method_8675(Lnet/minecraft/class_2338;Ljava/lang/Object;ILnet/minecraft/class_1953;)V
      named schedule Lnet/minecraft/world/TickScheduler;schedule(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;ILnet/minecraft/world/TickPriority;)V
    • isTicking

      public boolean isTicking(BlockPos pos, T object)
      Specified by:
      isTicking in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lbxh;b(Lgg;Ljava/lang/Object;)Z
      intermediary method_8677 Lnet/minecraft/class_1951;method_8677(Lnet/minecraft/class_2338;Ljava/lang/Object;)Z
      named isTicking Lnet/minecraft/world/TickScheduler;isTicking(Lnet/minecraft/util/math/BlockPos;Ljava/lang/Object;)Z
    • getTicks

      public int getTicks()
      Specified by:
      getTicks in interface TickScheduler<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lbxh;a()I
      intermediary method_20825 Lnet/minecraft/class_1951;method_20825()I
      named getTicks Lnet/minecraft/world/TickScheduler;getTicks()I