Class ServerTickScheduler<T>

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

public class ServerTickScheduler<T> extends Object implements TickScheduler<T>
Mappings:
Namespace Name
official bxe
intermediary net/minecraft/class_1949
named net/minecraft/server/world/ServerTickScheduler
  • Field Details

    • field_30975

      public static final int field_30975
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a:I
      intermediary field_30975 Lnet/minecraft/class_1949;field_30975:I
      named field_30975 Lnet/minecraft/server/world/ServerTickScheduler;field_30975:I
    • invalidObjPredicate

      protected final Predicate<T> invalidObjPredicate
      Mappings:
      Namespace Name Mixin selector
      official b Lbxe;b:Ljava/util/function/Predicate;
      intermediary field_9297 Lnet/minecraft/class_1949;field_9297:Ljava/util/function/Predicate;
      named invalidObjPredicate Lnet/minecraft/server/world/ServerTickScheduler;invalidObjPredicate:Ljava/util/function/Predicate;
    • idToName

      private final Function<T,Identifier> idToName
      Mappings:
      Namespace Name Mixin selector
      official c Lbxe;c:Ljava/util/function/Function;
      intermediary field_9294 Lnet/minecraft/class_1949;field_9294:Ljava/util/function/Function;
      named idToName Lnet/minecraft/server/world/ServerTickScheduler;idToName:Ljava/util/function/Function;
    • scheduledTickActions

      private final Set<ScheduledTick<T>> scheduledTickActions
      Mappings:
      Namespace Name Mixin selector
      official d Lbxe;d:Ljava/util/Set;
      intermediary field_9296 Lnet/minecraft/class_1949;field_9296:Ljava/util/Set;
      named scheduledTickActions Lnet/minecraft/server/world/ServerTickScheduler;scheduledTickActions:Ljava/util/Set;
    • scheduledTickActionsInOrder

      private final Set<ScheduledTick<T>> scheduledTickActionsInOrder
      Mappings:
      Namespace Name Mixin selector
      official e Lbxe;e:Ljava/util/Set;
      intermediary field_19341 Lnet/minecraft/class_1949;field_19341:Ljava/util/Set;
      named scheduledTickActionsInOrder Lnet/minecraft/server/world/ServerTickScheduler;scheduledTickActionsInOrder:Ljava/util/Set;
    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      official f Lbxe;f:Labr;
      intermediary field_9301 Lnet/minecraft/class_1949;field_9301:Lnet/minecraft/class_3218;
      named world Lnet/minecraft/server/world/ServerTickScheduler;world:Lnet/minecraft/server/world/ServerWorld;
    • currentTickActions

      private final Queue<ScheduledTick<T>> currentTickActions
      Mappings:
      Namespace Name Mixin selector
      official g Lbxe;g:Ljava/util/Queue;
      intermediary field_9299 Lnet/minecraft/class_1949;field_9299:Ljava/util/Queue;
      named currentTickActions Lnet/minecraft/server/world/ServerTickScheduler;currentTickActions:Ljava/util/Queue;
    • consumedTickActions

      private final List<ScheduledTick<T>> consumedTickActions
      Mappings:
      Namespace Name Mixin selector
      official h Lbxe;h:Ljava/util/List;
      intermediary field_19338 Lnet/minecraft/class_1949;field_19338:Ljava/util/List;
      named consumedTickActions Lnet/minecraft/server/world/ServerTickScheduler;consumedTickActions:Ljava/util/List;
    • tickConsumer

      private final Consumer<ScheduledTick<T>> tickConsumer
      Mappings:
      Namespace Name Mixin selector
      official i Lbxe;i:Ljava/util/function/Consumer;
      intermediary field_9300 Lnet/minecraft/class_1949;field_9300:Ljava/util/function/Consumer;
      named tickConsumer Lnet/minecraft/server/world/ServerTickScheduler;tickConsumer:Ljava/util/function/Consumer;
  • Constructor Details

    • ServerTickScheduler

      public ServerTickScheduler(ServerWorld world, Predicate<T> invalidObjPredicate, Function<T,Identifier> idToName, Consumer<ScheduledTick<T>> tickConsumer)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbxe;<init>(Labr;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
      intermediary <init> Lnet/minecraft/class_1949;<init>(Lnet/minecraft/class_3218;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
      named <init> Lnet/minecraft/server/world/ServerTickScheduler;<init>(Lnet/minecraft/server/world/ServerWorld;Ljava/util/function/Predicate;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
  • Method Details

    • tick

      public void tick()
      Mappings:
      Namespace Name Mixin selector
      official b Lbxe;b()V
      intermediary method_8670 Lnet/minecraft/class_1949;method_8670()V
      named tick Lnet/minecraft/server/world/ServerTickScheduler;tick()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
    • getScheduledTicksInChunk

      public List<ScheduledTick<T>> getScheduledTicksInChunk(ChunkPos pos, boolean updateState, boolean getStaleTicks)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Lbvu;ZZ)Ljava/util/List;
      intermediary method_8671 Lnet/minecraft/class_1949;method_8671(Lnet/minecraft/class_1923;ZZ)Ljava/util/List;
      named getScheduledTicksInChunk Lnet/minecraft/server/world/ServerTickScheduler;getScheduledTicksInChunk(Lnet/minecraft/util/math/ChunkPos;ZZ)Ljava/util/List;
    • getScheduledTicks

      public List<ScheduledTick<T>> getScheduledTicks(BlockBox bounds, boolean updateState, boolean getStaleTicks)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Ldaq;ZZ)Ljava/util/List;
      intermediary method_8672 Lnet/minecraft/class_1949;method_8672(Lnet/minecraft/class_3341;ZZ)Ljava/util/List;
      named getScheduledTicks Lnet/minecraft/server/world/ServerTickScheduler;getScheduledTicks(Lnet/minecraft/util/math/BlockBox;ZZ)Ljava/util/List;
    • transferTicksInBounds

      @Nullable private @Nullable List<ScheduledTick<T>> transferTicksInBounds(@Nullable @Nullable List<ScheduledTick<T>> dst, Collection<ScheduledTick<T>> src, BlockBox bounds, boolean move)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Ljava/util/List;Ljava/util/Collection;Ldaq;Z)Ljava/util/List;
      intermediary method_20596 Lnet/minecraft/class_1949;method_20596(Ljava/util/List;Ljava/util/Collection;Lnet/minecraft/class_3341;Z)Ljava/util/List;
      named transferTicksInBounds Lnet/minecraft/server/world/ServerTickScheduler;transferTicksInBounds(Ljava/util/List;Ljava/util/Collection;Lnet/minecraft/util/math/BlockBox;Z)Ljava/util/List;
    • copyScheduledTicks

      public void copyScheduledTicks(BlockBox box, BlockPos offset)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Ldaq;Lgg;)V
      intermediary method_8666 Lnet/minecraft/class_1949;method_8666(Lnet/minecraft/class_3341;Lnet/minecraft/class_2338;)V
      named copyScheduledTicks Lnet/minecraft/server/world/ServerTickScheduler;copyScheduledTicks(Lnet/minecraft/util/math/BlockBox;Lnet/minecraft/util/math/BlockPos;)V
    • toNbt

      public NbtList toNbt(ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Lbvu;)Lng;
      intermediary method_8669 Lnet/minecraft/class_1949;method_8669(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2499;
      named toNbt Lnet/minecraft/server/world/ServerTickScheduler;toNbt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtList;
    • serializeScheduledTicks

      private static <T> NbtList serializeScheduledTicks(Function<T,Identifier> identifierProvider, Iterable<ScheduledTick<T>> scheduledTicks, long time)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Ljava/util/function/Function;Ljava/lang/Iterable;J)Lng;
      intermediary method_20469 Lnet/minecraft/class_1949;method_20469(Ljava/util/function/Function;Ljava/lang/Iterable;J)Lnet/minecraft/class_2499;
      named serializeScheduledTicks Lnet/minecraft/server/world/ServerTickScheduler;serializeScheduledTicks(Ljava/util/function/Function;Ljava/lang/Iterable;J)Lnet/minecraft/nbt/NbtList;
    • 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
    • addScheduledTick

      private void addScheduledTick(ScheduledTick<T> tick)
      Mappings:
      Namespace Name Mixin selector
      official a Lbxe;a(Lbxi;)V
      intermediary method_20514 Lnet/minecraft/class_1949;method_20514(Lnet/minecraft/class_1954;)V
      named addScheduledTick Lnet/minecraft/server/world/ServerTickScheduler;addScheduledTick(Lnet/minecraft/world/ScheduledTick;)V
    • 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