public class EntityAITempt extends EntityAIBase
| Modifier and Type | Field and Description |
|---|---|
private int |
delayTemptCounter |
private boolean |
isRunning |
private double |
pitch |
private boolean |
scaredByPlayerMovement |
private double |
speed |
private double |
targetX |
private double |
targetY |
private double |
targetZ |
private EntityCreature |
temptedEntity |
private EntityPlayer |
temptingPlayer |
private java.util.Set<Item> |
temptItem |
private double |
yaw |
| Constructor and Description |
|---|
EntityAITempt(EntityCreature temptedEntityIn,
double speedIn,
boolean scaredByPlayerMovementIn,
java.util.Set<Item> temptItemIn) |
EntityAITempt(EntityCreature temptedEntityIn,
double speedIn,
Item temptItemIn,
boolean scaredByPlayerMovementIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning() |
protected boolean |
isTempting(ItemStack stack) |
void |
resetTask() |
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
void |
startExecuting() |
void |
updateTask() |
getMutexBits, isInterruptible, setMutexBitsprivate final EntityCreature temptedEntity
private final 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 final java.util.Set<Item> temptItem
private final boolean scaredByPlayerMovement
public EntityAITempt(EntityCreature temptedEntityIn, double speedIn, Item temptItemIn, boolean scaredByPlayerMovementIn)
public EntityAITempt(EntityCreature temptedEntityIn, double speedIn, boolean scaredByPlayerMovementIn, java.util.Set<Item> temptItemIn)
public boolean shouldExecute()
shouldExecute in class EntityAIBaseprotected boolean isTempting(ItemStack stack)
public boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIBasepublic void startExecuting()
startExecuting in class EntityAIBasepublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIBasepublic boolean isRunning()