Package net.minecraft.entity.ai.goal
Class AttackWithOwnerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.AttackWithOwnerGoal
public class AttackWithOwnerGoal extends TrackTargetGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private LivingEntityattackingprivate intlastAttackTimeprivate TameableEntitytameableFields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target -
Constructor Summary
Constructors Constructor Description AttackWithOwnerGoal(TameableEntity tameable) -
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
canTrack, getFollowRange, setMaxTimeWithoutVisibility, shouldContinue, stopMethods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, tick, toString
-
Field Details
-
tameable
-
attacking
-
lastAttackTime
private int lastAttackTime
-
-
Constructor Details
-
AttackWithOwnerGoal
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start()- Overrides:
startin classTrackTargetGoal
-