Class FarmerWorkTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.VillagerWorkTask
net.minecraft.entity.ai.brain.task.FarmerWorkTask
public class FarmerWorkTask extends VillagerWorkTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
Fields Modifier and Type Field Description private static List<Item>COMPOSTABLESFields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates -
Constructor Summary
Constructors Constructor Description FarmerWorkTask() -
Method Summary
Modifier and Type Method Description private voidcompostSeeds(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState)private voidcraftAndDropBread(VillagerEntity entity)private voidmethod_30232(ServerWorld serverWorld, BlockState blockState, BlockPos blockPos, BlockState blockState2)protected voidperformAdditionalWork(ServerWorld world, VillagerEntity entity)Methods inherited from class net.minecraft.entity.ai.brain.task.VillagerWorkTask
run, shouldKeepRunning, shouldRunMethods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, stop, tick, toString, tryStarting
-
Field Details
-
COMPOSTABLES
-
-
Constructor Details
-
FarmerWorkTask
public FarmerWorkTask()
-
-
Method Details
-
performAdditionalWork
- Overrides:
performAdditionalWorkin classVillagerWorkTask
-
compostSeeds
private void compostSeeds(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState) -
method_30232
private void method_30232(ServerWorld serverWorld, BlockState blockState, BlockPos blockPos, BlockState blockState2) -
craftAndDropBread
-