net.minecraft.world.entity.ai.behavior

public class AnimalMakeLove

extends Behavior<Animal>

All mapped superinterfaces:

BehaviorControl

bxt
net.minecraft.world.entity.ai.behavior.AnimalMakeLove
net.minecraft.class_4806
net.minecraft.entity.ai.brain.task.BreedTask
net.minecraft.world.entity.ai.behavior.BehaviorMakeLoveAnimal

Field summary

Modifier and TypeField
private static final int
c
BREED_RANGE
field_30104
MAX_RANGE
private static final int
d
MIN_DURATION
field_30105
MIN_BREED_TIME
private static final int
e
MAX_DURATION
field_30106
RUN_TIME
private final EntityType<? extends Animal>
f
partnerType
field_22283
targetType
private final float
g
speedModifier
field_23129
speed
private final int
h
closeEnoughDistance
field_48327
approachDistance
private static final int
i
DEFAULT_CLOSE_ENOUGH_DISTANCE
field_48328
DEFAULT_APPROACH_DISTANCE
private long
j
spawnChildAtTime
field_22284
breedTime

Constructor summary

ModifierConstructor
public (EntityType<? extends Animal> targetType)
public (EntityType<? extends Animal> targetType, float speed, int approachDistance)

Method summary

Modifier and TypeMethod
protected boolean
a(ash arg0, chx arg1)
checkExtraStartConditions(ServerLevel arg0, Animal arg1)
method_24543(class_3218 arg0, class_1429 arg1)
shouldRun(ServerWorld arg0, AnimalEntity arg1)
protected void
a(ash arg0, chx arg1, long arg2)
start(ServerLevel arg0, Animal arg1, long arg2)
method_24544(class_3218 arg0, class_1429 arg1, long arg2)
run(ServerWorld arg0, AnimalEntity arg1, long arg2)
protected boolean
b(ash arg0, chx arg1, long arg2)
canStillUse(ServerLevel arg0, Animal arg1, long arg2)
method_24547(class_3218 arg0, class_1429 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, AnimalEntity arg1, long arg2)
protected void
c(ash arg0, chx arg1, long arg2)
tick(ServerLevel arg0, Animal arg1, long arg2)
method_24549(class_3218 arg0, class_1429 arg1, long arg2)
keepRunning(ServerWorld arg0, AnimalEntity arg1, long arg2)
protected void
d(ash arg0, chx arg1, long arg2)
stop(ServerLevel arg0, Animal arg1, long arg2)
method_24550(class_3218 arg0, class_1429 arg1, long arg2)
finishRunning(ServerWorld arg0, AnimalEntity arg1, long arg2)
private Animal
a(chx arg0)
getBreedTarget(Animal arg0)
method_24542(class_1429 arg0)
getBreedTarget(AnimalEntity animal)
private boolean
b(chx arg0)
hasBreedTargetOfRightType(Animal arg0)
method_24546(class_1429 arg0)
hasBreedTarget(AnimalEntity animal)
private Optional<? extends Animal>
c(chx arg0)
findValidBreedPartner(Animal arg0)
method_24548(class_1429 arg0)
findBreedTarget(AnimalEntity animal)