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
FieldsFields inherited from class NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetTypeFields inherited from class TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks -
Constructor Summary
ConstructorsConstructorDescriptionNearestHealableRaiderTargetGoal(Raider raider, Class<T> targetType, boolean mustSee, @Nullable TargetingConditions.Selector subselector) -
Method Summary
Methods inherited from class NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTargetMethods inherited from class TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stopMethods inherited from class Goal
adjustedTickDelay, getFlags, getServerLevel, getServerLevel, 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 raider, Class<T> targetType, boolean mustSee, @Nullable TargetingConditions.Selector subselector)
-
-
Method Details
-
getCooldown
public int getCooldown() -
decrementCooldown
public void decrementCooldown() -
canUse
public boolean canUse()- Overrides:
canUsein classNearestAttackableTargetGoal<T extends LivingEntity>
-
start
public void start()- Overrides:
startin classNearestAttackableTargetGoal<T extends LivingEntity>
-