Enum 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>, java.lang.constant.Constable
Enclosing class:
CompositeTask<E extends LivingEntity>

public static enum CompositeTask.RunMode
extends Enum<CompositeTask.RunMode>
Mappings:
Namespace Name
official ate$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 Late$b;a:Late$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 Late$b;b:Late$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 type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static CompositeTask.RunMode valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • run

      public abstract <E extends LivingEntity> void run​(WeightedList<Task<? super E>> tasks, ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      official a Late$b;a(Lavr;Laav;Lari;J)V
      intermediary method_19559 Lnet/minecraft/class_4103$class_4216;method_19559(Lnet/minecraft/class_4131;Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named run Lnet/minecraft/entity/ai/brain/task/CompositeTask$RunMode;run(Lnet/minecraft/util/collection/WeightedList;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V