public class TradeTask extends Task<VillagerEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private float |
speed |
Constructor and Description |
---|
TradeTask(float speedIn) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isTimedOut(long gameTime) |
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) |
private void |
walkAndLookCustomer(VillagerEntity owner) |
protected boolean shouldExecute(ServerWorld worldIn, VillagerEntity owner)
shouldExecute
in class Task<VillagerEntity>
protected boolean shouldContinueExecuting(ServerWorld worldIn, VillagerEntity entityIn, long gameTimeIn)
shouldContinueExecuting
in class Task<VillagerEntity>
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 isTimedOut(long gameTime)
isTimedOut
in class Task<VillagerEntity>
private void walkAndLookCustomer(VillagerEntity owner)