static class EntityRabbit.AIRaidFarm extends EntityAIMoveToBlock
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canRaid |
private EntityRabbit |
rabbit |
private boolean |
wantsToRaid |
destinationBlock, runDelay| Constructor and Description |
|---|
AIRaidFarm(EntityRabbit rabbitIn) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldContinueExecuting() |
boolean |
shouldExecute() |
protected boolean |
shouldMoveTo(World worldIn,
BlockPos pos) |
void |
updateTask() |
getIsAboveDestination, startExecutinggetMutexBits, isInterruptible, resetTask, setMutexBitsprivate final EntityRabbit rabbit
private boolean wantsToRaid
private boolean canRaid
public AIRaidFarm(EntityRabbit rabbitIn)
public boolean shouldExecute()
shouldExecute in class EntityAIMoveToBlockpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class EntityAIMoveToBlockpublic void updateTask()
updateTask in class EntityAIMoveToBlockprotected boolean shouldMoveTo(World worldIn, BlockPos pos)
shouldMoveTo in class EntityAIMoveToBlock