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 ckf
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 Lckf;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 Lckf;b:Lbta;
      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 Lckf;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 Lckf;d:Lbtx;
      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> Lckf;<init>(Ljava/util/function/Predicate;Lbta;Lbtx;)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, ListTag tag, HeightLimitView world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckf;<init>(Ljava/util/function/Predicate;Lbta;Lmw;Lbtx;)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/ListTag;Lnet/minecraft/world/HeightLimitView;)V
  • Method Details

    • toNbt

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

      public void tick​(TickScheduler<T> scheduler, Function<BlockPos,​T> dataMapper)
      Mappings:
      Namespace Name Mixin selector
      official a Lckf;a(Lbun;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 Lbun;a(Lfx;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 Lbun;a(Lfx;Ljava/lang/Object;ILbup;)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 Lbun;b(Lfx;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