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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voiddoStop(ServerLevel level, E body, long timestamp) final Behavior.Statusfinal voidtickOrStop(ServerLevel level, E body, long timestamp) final booleantryStart(ServerLevel level, E body, long timestamp) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface BehaviorControl
getRequiredMemories
-
Field Details
-
status
-
-
Constructor Details
-
OneShot
public OneShot()
-
-
Method Details
-
getStatus
- Specified by:
getStatusin interfaceBehaviorControl<E extends LivingEntity>
-
tryStart
- Specified by:
tryStartin interfaceBehaviorControl<E extends LivingEntity>
-
tickOrStop
- Specified by:
tickOrStopin interfaceBehaviorControl<E extends LivingEntity>
-
doStop
- Specified by:
doStopin interfaceBehaviorControl<E extends LivingEntity>
-
debugString
- Specified by:
debugStringin interfaceBehaviorControl<E extends LivingEntity>
-