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
|
shouldExecutegetMutexBits, isInterruptible, setMutexBitsboolean closeDoor
int closeDoorTemporisation
public EntityAIOpenDoor(EntityLiving entitylivingIn, boolean shouldClose)
public boolean continueExecuting()
continueExecuting in class EntityAIDoorInteractpublic void startExecuting()
startExecuting in class EntityAIDoorInteractpublic void resetTask()
resetTask in class EntityAIBasepublic void updateTask()
updateTask in class EntityAIDoorInteract