Class VillagerMakeLove
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.VillagerMakeLove
- All Implemented Interfaces:
 BehaviorControl<Villager>
- 
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate static final intprivate static final floatFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbreed(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) private booleanprotected booleancanStillUse(ServerLevel p_24626_, Villager p_24627_, long p_24628_) protected booleancheckExtraStartConditions(ServerLevel p_24623_, Villager p_24624_) private voidgiveBedToChild(ServerLevel p_24634_, Villager p_24635_, BlockPos p_24636_) private booleanisBreedingPossible(Villager p_24640_) protected voidstart(ServerLevel p_24652_, Villager p_24653_, long p_24654_) protected voidstop(ServerLevel p_24675_, Villager p_24676_, long p_24677_) takeVacantBed(ServerLevel p_24649_, Villager p_24650_) protected voidtick(ServerLevel p_24667_, Villager p_24668_, long p_24669_) private voidtryToGiveBirth(ServerLevel p_24630_, Villager p_24631_, Villager p_24632_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart 
- 
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:
 checkExtraStartConditionsin classBehavior<Villager>
 - 
canStillUse
- Overrides:
 canStillUsein classBehavior<Villager>
 - 
start
 - 
tick
 - 
tryToGiveBirth
 - 
stop
 - 
isBreedingPossible
 - 
takeVacantBed
 - 
canReach
 - 
breed
 - 
giveBedToChild
 
 -