Enum Class CompositeTask.RunMode

java.lang.Object
java.lang.Enum<CompositeTask.RunMode>
net.minecraft.entity.ai.brain.task.CompositeTask.RunMode
All Implemented Interfaces:
Serializable, Comparable<CompositeTask.RunMode>, Constable
Enclosing class:
CompositeTask<E extends LivingEntity>

public static enum CompositeTask.RunMode extends Enum<CompositeTask.RunMode>
Mappings:
Namespace Name
official avs$b
intermediary net/minecraft/class_4103$class_4216
named net/minecraft/entity/ai/brain/task/CompositeTask$RunMode
  • Enum Constant Details

    • RUN_ONE

      public static final CompositeTask.RunMode RUN_ONE
      Mappings:
      Namespace Name Mixin selector
      official a Lavs$b;a:Lavs$b;
      intermediary field_18855 Lnet/minecraft/class_4103$class_4216;field_18855:Lnet/minecraft/class_4103$class_4216;
      named RUN_ONE Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;RUN_ONE:Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;
    • TRY_ALL

      public static final CompositeTask.RunMode TRY_ALL
      Mappings:
      Namespace Name Mixin selector
      official b Lavs$b;b:Lavs$b;
      intermediary field_18856 Lnet/minecraft/class_4103$class_4216;field_18856:Lnet/minecraft/class_4103$class_4216;
      named TRY_ALL Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;TRY_ALL:Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;
  • Constructor Details

    • RunMode

      private RunMode()
  • Method Details

    • values

      public static CompositeTask.RunMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CompositeTask.RunMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • run

      public abstract <E extends LivingEntity> void run(Stream<Task<? super E>> tasks, ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      official a Lavs$b;a(Ljava/util/stream/Stream;Labr;Latt;J)V
      intermediary method_19559 Lnet/minecraft/class_4103$class_4216;method_19559(Ljava/util/stream/Stream;Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named run Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;run(Ljava/util/stream/Stream;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V