Package net.minecraft.entity.monster
Class ShulkerEntity.AttackNearestGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TargetGoal
net.minecraft.entity.ai.goal.NearestAttackableTargetGoal<PlayerEntity>
net.minecraft.entity.monster.ShulkerEntity.AttackNearestGoal
- Enclosing class:
- ShulkerEntity
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canUse()
protected AxisAlignedBB
getTargetSearchArea
(double p_188511_1_) Methods inherited from class net.minecraft.entity.ai.goal.NearestAttackableTargetGoal
findTarget, setTarget, start
Methods inherited from class net.minecraft.entity.ai.goal.TargetGoal
canAttack, canContinueToUse, getFollowDistance, setUnseenMemoryTicks, stop
-
Constructor Details
-
AttackNearestGoal
-
-
Method Details
-
canUse
public boolean canUse()- Overrides:
canUse
in classNearestAttackableTargetGoal<PlayerEntity>
-
getTargetSearchArea
- Overrides:
getTargetSearchArea
in classNearestAttackableTargetGoal<PlayerEntity>
-