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 bvv
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 Lbvv;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 Lbvv;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> Lbvv;<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> Lbvv;<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 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
    • toNbt

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

      public static <T> SimpleTickScheduler<T> fromNbt(NbtList ticks, Function<T,Identifier> function, Function<Identifier,T> function2)
      Mappings:
      Namespace Name Mixin selector
      official a Lbvv;a(Lng;Ljava/util/function/Function;Ljava/util/function/Function;)Lbvv;
      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/NbtList;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 Lbvv;a(Lbxh;)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
    • 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