static class EndermanEntity.FindPlayerGoal extends NearestAttackableTargetGoal<PlayerEntity>
Modifier and Type | Field and Description |
---|---|
private int |
aggroTime |
private EndermanEntity |
enderman |
private EntityPredicate |
field_220791_m |
private EntityPredicate |
field_220792_n |
private PlayerEntity |
player |
private int |
teleportTime |
nearestTarget, targetChance, targetClass, targetEntitySelector
goalOwner, shouldCheckSight, target, unseenMemoryTicks
Constructor and Description |
---|
FindPlayerGoal(EndermanEntity endermanIn) |
Modifier and Type | Method and Description |
---|---|
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
tick() |
findNearestTarget, getTargetableArea
getTargetDistance, isSuitableTarget, setUnseenMemoryTicks
getMutexFlags, isPreemptible, setMutexFlags, toString
private final EndermanEntity enderman
private PlayerEntity player
private int aggroTime
private int teleportTime
private final EntityPredicate field_220791_m
private final EntityPredicate field_220792_n
public FindPlayerGoal(EndermanEntity endermanIn)
public boolean shouldExecute()
shouldExecute
in class NearestAttackableTargetGoal<PlayerEntity>
public void startExecuting()
startExecuting
in class NearestAttackableTargetGoal<PlayerEntity>
public void resetTask()
resetTask
in class TargetGoal
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class TargetGoal