public class FarmTask extends Task<VillagerEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private java.util.List<BlockPos> |
farmableBlocks |
private BlockPos |
field_220422_a |
private boolean |
field_220424_c |
private long |
field_220425_d |
private int |
field_220426_e |
private boolean |
hasFarmItemInInventory |
| Constructor and Description |
|---|
FarmTask() |
| Modifier and Type | Method and Description |
|---|---|
private BlockPos |
getNextPosForFarming(ServerWorld serverWorldIn) |
private boolean |
isValidPosForFarming(BlockPos pos,
ServerWorld serverWorldIn) |
protected void |
resetTask(ServerWorld worldIn,
VillagerEntity entityIn,
long gameTimeIn) |
protected boolean |
shouldContinueExecuting(ServerWorld worldIn,
VillagerEntity entityIn,
long gameTimeIn) |
protected boolean |
shouldExecute(ServerWorld worldIn,
VillagerEntity owner) |
protected void |
startExecuting(ServerWorld worldIn,
VillagerEntity entityIn,
long gameTimeIn) |
protected void |
updateTask(ServerWorld worldIn,
VillagerEntity owner,
long gameTime) |
@Nullable private BlockPos field_220422_a
private boolean hasFarmItemInInventory
private boolean field_220424_c
private long field_220425_d
private int field_220426_e
private final java.util.List<BlockPos> farmableBlocks
protected boolean shouldExecute(ServerWorld worldIn, VillagerEntity owner)
shouldExecute in class Task<VillagerEntity>@Nullable private BlockPos getNextPosForFarming(ServerWorld serverWorldIn)
private boolean isValidPosForFarming(BlockPos pos, ServerWorld serverWorldIn)
protected void startExecuting(ServerWorld worldIn, VillagerEntity entityIn, long gameTimeIn)
startExecuting in class Task<VillagerEntity>protected void resetTask(ServerWorld worldIn, VillagerEntity entityIn, long gameTimeIn)
resetTask in class Task<VillagerEntity>protected void updateTask(ServerWorld worldIn, VillagerEntity owner, long gameTime)
updateTask in class Task<VillagerEntity>protected boolean shouldContinueExecuting(ServerWorld worldIn, VillagerEntity entityIn, long gameTimeIn)
shouldContinueExecuting in class Task<VillagerEntity>