public class EntityAITempt extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private boolean |
avoidWater |
private int |
delayTemptCounter
A counter that is decremented each time the shouldExecute method is called.
|
private boolean |
isRunning
True if this EntityAITempt task is running
|
private double |
pitch
Tempting player's pitch
|
private boolean |
scaredByPlayerMovement
Whether the entity using this AI will be scared by the tempter's sudden movement.
|
private double |
speed |
private double |
targetX
X position of player tempting this mob
|
private double |
targetY
Y position of player tempting this mob
|
private double |
targetZ
Z position of player tempting this mob
|
private EntityCreature |
temptedEntity
The entity using this AI that is tempted by the player.
|
private EntityPlayer |
temptingPlayer
The player that is tempting the entity that is using this AI.
|
private Item |
temptItem |
private double |
yaw
Tempting player's yaw
|
| Constructor and Description |
|---|
EntityAITempt(EntityCreature temptedEntityIn,
double speedIn,
Item temptItemIn,
boolean scaredByPlayerMovementIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
isRunning() |
void |
resetTask()
Resets the task
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Updates the task
|
getMutexBits, isInterruptible, setMutexBitsprivate EntityCreature temptedEntity
private double speed
private double targetX
private double targetY
private double targetZ
private double pitch
private double yaw
private EntityPlayer temptingPlayer
private int delayTemptCounter
private boolean isRunning
private Item temptItem
private boolean scaredByPlayerMovement
private boolean avoidWater
public EntityAITempt(EntityCreature temptedEntityIn, double speedIn, Item temptItemIn, boolean scaredByPlayerMovementIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBasepublic boolean continueExecuting()
continueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBasepublic boolean isRunning()
isRunning