public class EntityAIOpenDoor extends EntityAIDoorInteract
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
closeDoor
If the entity close the door
|
(package private) int |
closeDoorTemporisation
The temporisation before the entity close the door (in ticks, always 20 = 1 second)
|
doorBlock, doorPosition, entityPositionX, entityPositionZ, hasStoppedDoorInteraction, theEntity
Constructor and Description |
---|
EntityAIOpenDoor(EntityLiving entitylivingIn,
boolean shouldClose) |
Modifier and Type | Method and Description |
---|---|
boolean |
continueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
void |
resetTask()
Resets the task
|
void |
startExecuting()
Execute a one shot task or start executing a continuous task
|
void |
updateTask()
Updates the task
|
shouldExecute
getMutexBits, isInterruptible, setMutexBits
boolean closeDoor
int closeDoorTemporisation
public EntityAIOpenDoor(EntityLiving entitylivingIn, boolean shouldClose)
public boolean continueExecuting()
continueExecuting
in class EntityAIDoorInteract
public void startExecuting()
startExecuting
in class EntityAIDoorInteract
public void resetTask()
resetTask
in class EntityAIBase
public void updateTask()
updateTask
in class EntityAIDoorInteract