Package net.minecraft.entity.ai.goal
Class TrackOwnerAttackerGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.TrackTargetGoal
net.minecraft.entity.ai.goal.TrackOwnerAttackerGoal
public class TrackOwnerAttackerGoal 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 LivingEntityattackerprivate intlastAttackedTimeprivate TameableEntitytameableFields inherited from class net.minecraft.entity.ai.goal.TrackTargetGoal
checkVisibility, maxTimeWithoutVisibility, mob, target -
Constructor Summary
Constructors Constructor Description TrackOwnerAttackerGoal(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
-
attacker
-
lastAttackedTime
private int lastAttackedTime
-
-
Constructor Details
-
TrackOwnerAttackerGoal
-
-
Method Details
-
canStart
public boolean canStart() -
start
public void start()- Overrides:
startin classTrackTargetGoal
-