Package net.minecraft.entity.ai.goal
Class NearestAttackableTargetExpiringGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
net.minecraft.entity.ai.goal.NearestAttackableTargetGoal<T>
net.minecraft.entity.ai.goal.NearestAttackableTargetExpiringGoal<T>
public class NearestAttackableTargetExpiringGoal<T extends LivingEntity>
extends NearestAttackableTargetGoal<T>
-
Nested Class Summary
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
randomInterval, target, targetConditions, targetType
Fields inherited from class net.minecraft.entity.ai.goal.TargetGoal
mob, mustSee, targetMob, unseenMemoryTicks
-
Constructor Summary
ConstructorDescriptionNearestAttackableTargetExpiringGoal
(AbstractRaiderEntity p_i50311_1_, Class<T> p_i50311_2_, boolean p_i50311_3_, Predicate<LivingEntity> p_i50311_4_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
Field Details
-
cooldown
private int cooldown
-
-
Constructor Details
-
NearestAttackableTargetExpiringGoal
public NearestAttackableTargetExpiringGoal(AbstractRaiderEntity p_i50311_1_, Class<T> p_i50311_2_, boolean p_i50311_3_, @Nullable Predicate<LivingEntity> p_i50311_4_)
-
-
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>
-