public class EntityAIResearchFossil
extends net.minecraft.entity.ai.EntityAIMoveToBlock
| Constructor and Description |
|---|
EntityAIResearchFossil(net.minecraft.entity.passive.EntityVillager villagerIn,
double speedIn) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.math.BlockPos |
getSpawnLocation() |
boolean |
shouldContinueExecuting()
Returns whether an in-progress EntityAIBase should continue executing
|
boolean |
shouldExecute()
Returns whether the EntityAIBase should begin execution.
|
protected boolean |
shouldMoveTo(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos)
Return true to set given position as destination
|
void |
updateTask()
Keep ticking a continuous task that has already been started
|
getIsAboveDestination, startExecutingpublic EntityAIResearchFossil(net.minecraft.entity.passive.EntityVillager villagerIn,
double speedIn)
public boolean shouldExecute()
shouldExecute in class net.minecraft.entity.ai.EntityAIMoveToBlockpublic boolean shouldContinueExecuting()
shouldContinueExecuting in class net.minecraft.entity.ai.EntityAIMoveToBlockpublic net.minecraft.util.math.BlockPos getSpawnLocation()
public void updateTask()
updateTask in class net.minecraft.entity.ai.EntityAIMoveToBlockprotected boolean shouldMoveTo(net.minecraft.world.World worldIn,
net.minecraft.util.math.BlockPos pos)
shouldMoveTo in class net.minecraft.entity.ai.EntityAIMoveToBlock