Class FarmerWorkTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
-
- net.minecraft.entity.ai.brain.task.SpawnGolemTask
-
- net.minecraft.entity.ai.brain.task.FarmerWorkTask
-
public class FarmerWorkTask extends SpawnGolemTask
-
-
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 java.util.List<Item>
COMPOSTABLE_ITEMS
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description FarmerWorkTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
compostItems(ServerWorld p_234016_1_, VillagerEntity p_234016_2_, GlobalPos p_234016_3_, BlockState p_234016_4_)
private void
makeBread(VillagerEntity p_234015_1_)
private void
spawnComposterFillEffects(ServerWorld p_242308_1_, BlockState p_242308_2_, BlockPos p_242308_3_, BlockState p_242308_4_)
protected void
useWorkstation(ServerWorld p_230251_1_, VillagerEntity p_230251_2_)
-
Methods inherited from class net.minecraft.entity.ai.brain.task.SpawnGolemTask
canStillUse, checkExtraStartConditions, start
-
-
-
-
Field Detail
-
COMPOSTABLE_ITEMS
private static final java.util.List<Item> COMPOSTABLE_ITEMS
-
-
Method Detail
-
useWorkstation
protected void useWorkstation(ServerWorld p_230251_1_, VillagerEntity p_230251_2_)
- Overrides:
useWorkstation
in classSpawnGolemTask
-
compostItems
private void compostItems(ServerWorld p_234016_1_, VillagerEntity p_234016_2_, GlobalPos p_234016_3_, BlockState p_234016_4_)
-
spawnComposterFillEffects
private void spawnComposterFillEffects(ServerWorld p_242308_1_, BlockState p_242308_2_, BlockPos p_242308_3_, BlockState p_242308_4_)
-
makeBread
private void makeBread(VillagerEntity p_234015_1_)
-
-