Class GateBehavior<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.GateBehavior<E>
- All Implemented Interfaces:
BehaviorControl<E>
- Direct Known Subclasses:
RunOne
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ShufflingList
<BehaviorControl<? super E>> private final Map
<MemoryModuleType<?>, MemoryStatus> private final Set
<MemoryModuleType<?>> private final GateBehavior.OrderPolicy
private final GateBehavior.RunningPolicy
private Behavior.Status
-
Constructor Summary
ConstructorDescriptionGateBehavior
(Map<MemoryModuleType<?>, MemoryStatus> p_22873_, Set<MemoryModuleType<?>> p_22874_, GateBehavior.OrderPolicy p_22875_, GateBehavior.RunningPolicy p_22876_, List<com.mojang.datafixers.util.Pair<? extends BehaviorControl<? super E>, Integer>> p_22877_) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
doStop
(ServerLevel p_259962_, E p_260250_, long p_259847_) private boolean
hasRequiredMemories
(E p_259419_) final void
tickOrStop
(ServerLevel p_259934_, E p_259790_, long p_260259_) toString()
final boolean
tryStart
(ServerLevel p_259362_, E p_259746_, long p_259560_)
-
Field Details
-
entryCondition
-
exitErasedMemories
-
orderPolicy
-
runningPolicy
-
behaviors
-
status
-
-
Constructor Details
-
GateBehavior
public GateBehavior(Map<MemoryModuleType<?>, MemoryStatus> p_22873_, Set<MemoryModuleType<?>> p_22874_, GateBehavior.OrderPolicy p_22875_, GateBehavior.RunningPolicy p_22876_, List<com.mojang.datafixers.util.Pair<? extends BehaviorControl<? super E>, Integer>> p_22877_)
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceBehaviorControl<E extends LivingEntity>
-
hasRequiredMemories
-
tryStart
- Specified by:
tryStart
in interfaceBehaviorControl<E extends LivingEntity>
-
tickOrStop
- Specified by:
tickOrStop
in interfaceBehaviorControl<E extends LivingEntity>
-
doStop
- Specified by:
doStop
in interfaceBehaviorControl<E extends LivingEntity>
-
debugString
- Specified by:
debugString
in interfaceBehaviorControl<E extends LivingEntity>
-
toString
-