Package net.minecraft.entity.ai.goal
Class ToggleableNearestAttackableTargetGoal<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.ToggleableNearestAttackableTargetGoal<T>
public class ToggleableNearestAttackableTargetGoal<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
ConstructorDescriptionToggleableNearestAttackableTargetGoal
(AbstractRaiderEntity p_i50312_1_, Class<T> p_i50312_2_, int p_i50312_3_, boolean p_i50312_4_, boolean p_i50312_5_, Predicate<LivingEntity> p_i50312_6_) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, getTargetSearchArea, setTarget, start
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
Field Details
-
canAttack
private boolean canAttack
-
-
Constructor Details
-
ToggleableNearestAttackableTargetGoal
public ToggleableNearestAttackableTargetGoal(AbstractRaiderEntity p_i50312_1_, Class<T> p_i50312_2_, int p_i50312_3_, boolean p_i50312_4_, boolean p_i50312_5_, @Nullable Predicate<LivingEntity> p_i50312_6_)
-
-
Method Details
-
setCanAttack
public void setCanAttack(boolean p_220783_1_) -
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<T extends LivingEntity>
-