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 SummaryNested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.BehaviorBehavior.Status
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate longprivate static final intprivate static final floatFields inherited from class net.minecraft.world.entity.ai.behavior.BehaviorDEFAULT_DURATION, entryCondition
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.BehaviordebugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
- 
Field Details- 
INTERACT_DIST_SQRprivate static final int INTERACT_DIST_SQR- See Also:
 
- 
SPEED_MODIFIERprivate static final float SPEED_MODIFIER- See Also:
 
- 
birthTimestampprivate long birthTimestamp
 
- 
- 
Constructor Details- 
VillagerMakeLovepublic VillagerMakeLove()
 
- 
- 
Method Details- 
checkExtraStartConditions- Overrides:
- checkExtraStartConditionsin class- Behavior<Villager>
 
- 
canStillUse- Overrides:
- canStillUsein class- Behavior<Villager>
 
- 
start
- 
tick
- 
tryToGiveBirth
- 
stop
- 
isBreedingPossible
- 
takeVacantBed
- 
canReach
- 
breed
- 
giveBedToChild
 
-