Class HarvestFarmland
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.HarvestFarmland
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate BlockPos
private static final int
private long
static final float
private int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel p_23204_, Villager p_23205_, long p_23206_) protected boolean
checkExtraStartConditions
(ServerLevel p_23174_, Villager p_23175_) private BlockPos
getValidFarmland
(ServerLevel p_23165_) protected void
start
(ServerLevel p_23177_, Villager p_23178_, long p_23179_) protected void
stop
(ServerLevel p_23188_, Villager p_23189_, long p_23190_) protected void
tick
(ServerLevel p_23196_, Villager p_23197_, long p_23198_) private boolean
validPos
(BlockPos p_23181_, ServerLevel p_23182_)
-
Field Details
-
HARVEST_DURATION
private static final int HARVEST_DURATION- See Also:
-
SPEED_MODIFIER
public static final float SPEED_MODIFIER- See Also:
-
aboveFarmlandPos
-
nextOkStartTime
private long nextOkStartTime -
timeWorkedSoFar
private int timeWorkedSoFar -
validFarmlandAroundVillager
-
-
Constructor Details
-
HarvestFarmland
public HarvestFarmland()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Villager>
-
getValidFarmland
-
validPos
-
start
-
stop
-
tick
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Villager>
-