Class UseBonemeal
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.UseBonemeal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private long
private long
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_24477_, Villager p_24478_, long p_24479_) protected boolean
checkExtraStartConditions
(ServerLevel p_24474_, Villager p_24475_) pickNextTarget
(ServerLevel p_24493_, Villager p_24494_) private void
setCurrentCropAsTarget
(Villager p_24481_) protected void
start
(ServerLevel p_24496_, Villager p_24497_, long p_24498_) protected void
stop
(ServerLevel p_24504_, Villager p_24505_, long p_24506_) protected void
tick
(ServerLevel p_24512_, Villager p_24513_, long p_24514_) private boolean
validPos
(BlockPos p_24486_, ServerLevel p_24487_)
-
Field Details
-
BONEMEALING_DURATION
private static final int BONEMEALING_DURATION- See Also:
-
nextWorkCycleTime
private long nextWorkCycleTime -
lastBonemealingSession
private long lastBonemealingSession -
timeWorkedSoFar
private int timeWorkedSoFar -
cropPos
-
-
Constructor Details
-
UseBonemeal
public UseBonemeal()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Villager>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Villager>
-
pickNextTarget
-
validPos
-
start
-
setCurrentCropAsTarget
-
stop
-
tick
-