static class EndermanEntity.TeleportTowardsPlayerGoal extends FollowTargetGoal<PlayerEntity>
Goal.Control
Modifier and Type | Field and Description |
---|---|
private EndermanEntity |
enderman |
private int |
lookAtPlayerWarmup |
private TargetPredicate |
staringPlayerPredicate |
private PlayerEntity |
targetPlayer |
private int |
ticksSinceUnseenTeleport |
private TargetPredicate |
validTargetPredicate |
reciprocalChance, targetClass, targetEntity, targetPredicate
checkVisibility, maxTimeWithoutVisibility, mob, target
Constructor and Description |
---|
TeleportTowardsPlayerGoal(EndermanEntity enderman,
Predicate<LivingEntity> predicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
void |
tick() |
findClosestTarget, getSearchBox, setTargetEntity
canTrack, getFollowRange, setMaxTimeWithoutVisibility
canStop, getControls, setControls, toString
private final EndermanEntity enderman
private PlayerEntity targetPlayer
private int lookAtPlayerWarmup
private int ticksSinceUnseenTeleport
private final TargetPredicate staringPlayerPredicate
private final TargetPredicate validTargetPredicate
public TeleportTowardsPlayerGoal(EndermanEntity enderman, @Nullable Predicate<LivingEntity> predicate)
public boolean canStart()
canStart
in class FollowTargetGoal<PlayerEntity>
public void start()
start
in class FollowTargetGoal<PlayerEntity>
public void stop()
stop
in class TrackTargetGoal
public boolean shouldContinue()
shouldContinue
in class TrackTargetGoal