Class SimpleTickScheduler<T>

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

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

    • scheduledTicks

      private final List<SimpleTickScheduler.Tick<T>> scheduledTicks
      Mappings:
      Namespace Name Mixin selector
      official a Lbtb;a:Ljava/util/List;
      intermediary field_19275 Lnet/minecraft/class_4296;field_19275:Ljava/util/List;
      named scheduledTicks Lnet/minecraft/server/world/SimpleTickScheduler;scheduledTicks:Ljava/util/List;
    • identifierProvider

      private final Function<T,​Identifier> identifierProvider
      Mappings:
      Namespace Name Mixin selector
      official b Lbtb;b:Ljava/util/function/Function;
      intermediary field_19276 Lnet/minecraft/class_4296;field_19276:Ljava/util/function/Function;
      named identifierProvider Lnet/minecraft/server/world/SimpleTickScheduler;identifierProvider:Ljava/util/function/Function;
  • Constructor Details

    • SimpleTickScheduler

      public SimpleTickScheduler​(Function<T,​Identifier> identifierProvider, List<ScheduledTick<T>> scheduledTicks, long startTime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbtb;<init>(Ljava/util/function/Function;Ljava/util/List;J)V
      intermediary <init> Lnet/minecraft/class_4296;<init>(Ljava/util/function/Function;Ljava/util/List;J)V
      named <init> Lnet/minecraft/server/world/SimpleTickScheduler;<init>(Ljava/util/function/Function;Ljava/util/List;J)V
    • SimpleTickScheduler

      private SimpleTickScheduler​(Function<T,​Identifier> identifierProvider, List<SimpleTickScheduler.Tick<T>> scheduledTicks)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbtb;<init>(Ljava/util/function/Function;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_4296;<init>(Ljava/util/function/Function;Ljava/util/List;)V
      named <init> Lnet/minecraft/server/world/SimpleTickScheduler;<init>(Ljava/util/function/Function;Ljava/util/List;)V
  • Method Details

    • 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
    • toNbt

      public ListTag toNbt()
      Mappings:
      Namespace Name Mixin selector
      official b Lbtb;b()Lmw;
      intermediary method_20463 Lnet/minecraft/class_4296;method_20463()Lnet/minecraft/class_2499;
      named toNbt Lnet/minecraft/server/world/SimpleTickScheduler;toNbt()Lnet/minecraft/nbt/ListTag;
    • fromNbt

      public static <T> SimpleTickScheduler<T> fromNbt​(ListTag ticks, Function<T,​Identifier> function, Function<Identifier,​T> function2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtb;a(Lmw;Ljava/util/function/Function;Ljava/util/function/Function;)Lbtb;
      intermediary method_20512 Lnet/minecraft/class_4296;method_20512(Lnet/minecraft/class_2499;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_4296;
      named fromNbt Lnet/minecraft/server/world/SimpleTickScheduler;fromNbt(Lnet/minecraft/nbt/ListTag;Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/server/world/SimpleTickScheduler;
    • scheduleTo

      public void scheduleTo​(TickScheduler<T> scheduler)
      Mappings:
      Namespace Name Mixin selector
      official a Lbtb;a(Lbun;)V
      intermediary method_26368 Lnet/minecraft/class_4296;method_26368(Lnet/minecraft/class_1951;)V
      named scheduleTo Lnet/minecraft/server/world/SimpleTickScheduler;scheduleTo(Lnet/minecraft/world/TickScheduler;)V