Class DoNothing
java.lang.Object
net.minecraft.world.entity.ai.behavior.DoNothing
- All Implemented Interfaces:
BehaviorControl<LivingEntity>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
private final int
private final int
private Behavior.Status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal void
doStop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) final void
tickOrStop
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime) final boolean
tryStart
(ServerLevel pLevel, LivingEntity pEntity, long pGameTime)
-
Field Details
-
minDuration
private final int minDuration -
maxDuration
private final int maxDuration -
status
-
endTimestamp
private long endTimestamp
-
-
Constructor Details
-
DoNothing
public DoNothing(int pMinDuration, int pMaxDuration)
-
-
Method Details
-
getStatus
- Specified by:
getStatus
in interfaceBehaviorControl<LivingEntity>
-
tryStart
- Specified by:
tryStart
in interfaceBehaviorControl<LivingEntity>
-
tickOrStop
- Specified by:
tickOrStop
in interfaceBehaviorControl<LivingEntity>
-
doStop
- Specified by:
doStop
in interfaceBehaviorControl<LivingEntity>
-
debugString
- Specified by:
debugString
in interfaceBehaviorControl<LivingEntity>
-