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>
-
-
Field Summary
Fields Modifier and Type Field Description private int
cooldown
-
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
Constructors Constructor Description NearestAttackableTargetExpiringGoal(AbstractRaiderEntity p_i50311_1_, java.lang.Class<T> p_i50311_2_, boolean p_i50311_3_, java.util.function.Predicate<LivingEntity> p_i50311_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
void
decrementCooldown()
int
getCooldown()
void
start()
-
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
-
-
-
-
Constructor Detail
-
NearestAttackableTargetExpiringGoal
public NearestAttackableTargetExpiringGoal(AbstractRaiderEntity p_i50311_1_, java.lang.Class<T> p_i50311_2_, boolean p_i50311_3_, @Nullable java.util.function.Predicate<LivingEntity> p_i50311_4_)
-
-
Method Detail
-
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>
-
-