Class GateBehavior<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.GateBehavior<E>
- Direct Known Subclasses:
RunOne
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ShufflingList<Behavior<? super E>>
private final Set<MemoryModuleType<?>>
private final GateBehavior.OrderPolicy
private final GateBehavior.RunningPolicy
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
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<Behavior<? super E>, Integer>> p_22877_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel p_22894_, E p_22895_, long p_22896_) protected void
start
(ServerLevel p_22881_, E p_22882_, long p_22883_) protected void
stop
(ServerLevel p_22905_, E p_22906_, long p_22907_) protected void
tick
(ServerLevel p_22916_, E p_22917_, long p_22918_) protected boolean
timedOut
(long p_22879_) toString()
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
checkExtraStartConditions, doStop, getStatus, tickOrStop, tryStart
-
Field Details
-
exitErasedMemories
-
orderPolicy
-
runningPolicy
-
behaviors
-
-
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<Behavior<? super E>, Integer>> p_22877_)
-
-
Method Details
-
canStillUse
- Overrides:
canStillUse
in classBehavior<E extends LivingEntity>
-
timedOut
protected boolean timedOut(long p_22879_) - Overrides:
timedOut
in classBehavior<E extends LivingEntity>
-
start
- Overrides:
start
in classBehavior<E extends LivingEntity>
-
tick
- Overrides:
tick
in classBehavior<E extends LivingEntity>
-
stop
- Overrides:
stop
in classBehavior<E extends LivingEntity>
-
toString
- Overrides:
toString
in classBehavior<E extends LivingEntity>
-