Class GoToWantedItem<E extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.GoToWantedItem<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionGoToWantedItem(float p_23140_, boolean p_23141_, int p_23142_)
GoToWantedItem(Predicate<E> p_23144_, float p_23145_, boolean p_23146_, int p_23147_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions(ServerLevel p_23149_, E p_23150_)
private ItemEntity
getClosestLovedItem(E p_23156_)
protected void
start(ServerLevel p_23152_, E p_23153_, long p_23154_)
Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
predicate
-
maxDistToWalk
private final int maxDistToWalk -
speedModifier
private final float speedModifier
-
-
Constructor Details
-
GoToWantedItem
public GoToWantedItem(float p_23140_, boolean p_23141_, int p_23142_) -
GoToWantedItem
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<E extends LivingEntity>
-
start
- Overrides:
start
in classBehavior<E extends LivingEntity>
-
getClosestLovedItem
-