Class OneShot<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.OneShot<E>
- All Implemented Interfaces:
BehaviorControl<E>
,Trigger<E>
public abstract class OneShot<E extends LivingEntity>
extends Object
implements BehaviorControl<E>, Trigger<E>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
doStop
(ServerLevel p_260215_, E p_259970_, long p_260273_) final Behavior.Status
final void
tickOrStop
(ServerLevel p_259112_, E p_259594_, long p_259046_) final boolean
tryStart
(ServerLevel p_260083_, E p_259643_, long p_259226_)
-
Field Details
-
status
-
-
Constructor Details
-
OneShot
public OneShot()
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceBehaviorControl<E extends LivingEntity>
-
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>
-