Enum Class GateBehavior.RunningPolicy
java.lang.Object
java.lang.Enum<GateBehavior.RunningPolicy>
net.minecraft.world.entity.ai.behavior.GateBehavior.RunningPolicy
- All Implemented Interfaces:
Serializable
,Comparable<GateBehavior.RunningPolicy>
,Constable
- Enclosing class:
GateBehavior<E extends LivingEntity>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract <E extends LivingEntity>
voidapply
(Stream<BehaviorControl<? super E>> p_147532_, ServerLevel p_147533_, E p_147534_, long p_147535_) static GateBehavior.RunningPolicy
Returns the enum constant of this class with the specified name.static GateBehavior.RunningPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUN_ONE
-
TRY_ALL
-
-
Constructor Details
-
RunningPolicy
private RunningPolicy()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
apply
public abstract <E extends LivingEntity> void apply(Stream<BehaviorControl<? super E>> p_147532_, ServerLevel p_147533_, E p_147534_, long p_147535_)
-