static enum CompositeTask.RunMode extends Enum<CompositeTask.RunMode>
Modifier and Type | Method and Description |
---|---|
abstract <E extends LivingEntity> |
run(WeightedList<Task<? super E>> tasks,
ServerWorld world,
E entity,
long time) |
static CompositeTask.RunMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompositeTask.RunMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompositeTask.RunMode RUN_ONE
public static final CompositeTask.RunMode TRY_ALL
public static CompositeTask.RunMode[] values()
for (CompositeTask.RunMode c : CompositeTask.RunMode.values()) System.out.println(c);
public static CompositeTask.RunMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract <E extends LivingEntity> void run(WeightedList<Task<? super E>> tasks, ServerWorld world, E entity, long time)