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 LivingEntity
attacker
private int
lastAttackedTime
private TameableEntity
tameable
Fields 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, stop
Methods 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:
start
in classTrackTargetGoal
-