Class BabyFollowAdult<E extends AgeableMob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.BabyFollowAdult<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final UniformInt
private final Function<LivingEntity,
Float> Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionBabyFollowAdult
(UniformInt p_147414_, float p_147415_) BabyFollowAdult
(UniformInt p_147417_, Function<LivingEntity, Float> p_147418_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerLevel p_147423_, E p_147424_) private AgeableMob
getNearestAdult
(E p_147430_) protected void
start
(ServerLevel p_147426_, E p_147427_, long p_147428_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
followRange
-
speedModifier
-
-
Constructor Details
-
BabyFollowAdult
-
BabyFollowAdult
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<E extends AgeableMob>
-
start
- Overrides:
start
in classBehavior<E extends AgeableMob>
-
getNearestAdult
-