Package net.minecraft.entity.mob
Class SpiderEntity.AttackGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MeleeAttackGoal
net.minecraft.entity.mob.SpiderEntity.AttackGoal
- Enclosing class:
- SpiderEntity
static class SpiderEntity.AttackGoal extends MeleeAttackGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
mob
-
Constructor Summary
Constructors Constructor Description AttackGoal(SpiderEntity spider)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected double
getSquaredMaxAttackDistance(LivingEntity entity)
boolean
shouldContinue()
Methods inherited from class net.minecraft.entity.ai.goal.MeleeAttackGoal
attack, method_28346, method_28347, method_28348, method_28349, start, stop, tick
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Constructor Details
-
AttackGoal
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classMeleeAttackGoal
-
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classMeleeAttackGoal
-
getSquaredMaxAttackDistance
- Overrides:
getSquaredMaxAttackDistance
in classMeleeAttackGoal
-