public class EntityAIBeg extends EntityAIBase
Modifier and Type | Field and Description |
---|---|
private float |
minPlayerDistance |
private EntityPlayer |
player |
private int |
timeoutCounter |
private EntityWolf |
wolf |
private World |
world |
Constructor and Description |
---|
EntityAIBeg(EntityWolf wolf,
float minDistance) |
Modifier and Type | Method and Description |
---|---|
private boolean |
hasTemptationItemInHand(EntityPlayer player) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBits
private final EntityWolf wolf
private EntityPlayer player
private final World world
private final float minPlayerDistance
private int timeoutCounter
public EntityAIBeg(EntityWolf wolf, float minDistance)
public boolean shouldExecute()
shouldExecute
in class EntityAIBase
public boolean shouldContinueExecuting()
shouldContinueExecuting
in class EntityAIBase
public void startExecuting()
startExecuting
in class EntityAIBase
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIBase
private boolean hasTemptationItemInHand(EntityPlayer player)