Class VillagerMakeLove
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.VillagerMakeLove
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private static final int
private static final float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbreed
(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) private boolean
protected boolean
canStillUse
(ServerLevel p_24626_, Villager p_24627_, long p_24628_) protected boolean
checkExtraStartConditions
(ServerLevel p_24623_, Villager p_24624_) private void
giveBedToChild
(ServerLevel p_24634_, Villager p_24635_, BlockPos p_24636_) private boolean
isBreedingPossible
(Villager p_24640_) protected void
start
(ServerLevel p_24652_, Villager p_24653_, long p_24654_) protected void
stop
(ServerLevel p_24675_, Villager p_24676_, long p_24677_) takeVacantBed
(ServerLevel p_24649_, Villager p_24650_) protected void
tick
(ServerLevel p_24667_, Villager p_24668_, long p_24669_) private void
tryToGiveBirth
(ServerLevel p_24630_, Villager p_24631_, Villager p_24632_)
-
Field Details
-
INTERACT_DIST_SQR
private static final int INTERACT_DIST_SQR- See Also:
-
SPEED_MODIFIER
private static final float SPEED_MODIFIER- See Also:
-
birthTimestamp
private long birthTimestamp
-
-
Constructor Details
-
VillagerMakeLove
public VillagerMakeLove()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Villager>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Villager>
-
start
-
tick
-
tryToGiveBirth
-
stop
-
isBreedingPossible
-
takeVacantBed
-
canReach
-
breed
-
giveBedToChild
-