Class NearestHealableRaiderTargetGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.target.TargetGoal
net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal<T>
net.minecraft.world.entity.ai.goal.target.NearestHealableRaiderTargetGoal<T>
public class NearestHealableRaiderTargetGoal<T extends LivingEntity>
extends NearestAttackableTargetGoal<T>
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
Fields inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
ConstructorDescriptionNearestHealableRaiderTargetGoal
(Raider p_26087_, Class<T> p_26088_, boolean p_26089_, Predicate<LivingEntity> p_26090_) -
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.target.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget
Methods inherited from class net.minecraft.world.entity.ai.goal.target.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString
-
Field Details
-
DEFAULT_COOLDOWN
private static final int DEFAULT_COOLDOWN- See Also:
-
cooldown
private int cooldown
-
-
Constructor Details
-
NearestHealableRaiderTargetGoal
public NearestHealableRaiderTargetGoal(Raider p_26087_, Class<T> p_26088_, boolean p_26089_, @Nullable Predicate<LivingEntity> p_26090_)
-
-
Method Details
-
getCooldown
public int getCooldown() -
decrementCooldown
public void decrementCooldown() -
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<T extends LivingEntity>
-
start
public void start()- Overrides:
start
in classNearestAttackableTargetGoal<T extends LivingEntity>
-