net.minecraft.world.entity.ai.behavior

public class RamTarget

extends Behavior<Goat>

All mapped superinterfaces:

BehaviorControl

bps
net.minecraft.world.entity.ai.behavior.RamTarget
net.minecraft.class_6338
net.minecraft.entity.ai.brain.task.RamImpactTask
net.minecraft.src.C_141086_
net.minecraft.world.entity.ai.behavior.RamTarget

Field summary

Modifier and TypeField
public static final int
c
TIME_OUT_DURATION
field_33474
RUN_TIME
f_147800_
public static final float
d
RAM_SPEED_FORCE_FACTOR
field_33475
SPEED_STRENGTH_MULTIPLIER
f_147801_
private final Function<Goat, UniformInt>
e
getTimeBetweenRams
field_33476
cooldownRangeFactory
f_147802_
private final TargetingConditions
f
ramTargeting
field_33477
targetPredicate
f_147803_
private final float
g
speed
field_33479
speed
f_147805_
private final ToDoubleFunction<Goat>
h
getKnockbackForce
field_33480
strengthMultiplierFactory
f_147806_
private Vec3
i
ramDirection
field_33481
direction
f_147807_
private final Function<Goat, SoundEvent>
j
getImpactSound
field_33482
impactSoundFactory
f_147808_
private final Function<Goat, SoundEvent>
k
getHornBreakSound
field_39044
hornBreakSoundFactory
f_217340_

Constructor summary

ModifierConstructor
public (Function<Goat, UniformInt> cooldownRangeFactory, TargetingConditions targetPredicate, float speed, ToDoubleFunction<Goat> strengthMultiplierFactory, Function<Goat, SoundEvent> impactSoundFactory, Function<Goat, SoundEvent> hornBreakSoundFactory)

Method summary

Modifier and TypeMethod
protected boolean
a(and arg0, bzt arg1)
checkExtraStartConditions(ServerLevel arg0, Goat arg1)
method_36277(class_3218 arg0, class_6053 arg1)
shouldRun(ServerWorld arg0, GoatEntity arg1)
m_6114_(C_12_ p_217350_, C_141129_ arg1)
protected boolean
a(and arg0, bzt arg1, long arg2)
canStillUse(ServerLevel arg0, Goat arg1, long arg2)
method_36278(class_3218 arg0, class_6053 arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, GoatEntity arg1, long arg2)
m_6737_(C_12_ p_217353_, C_141129_ p_217354_, long arg2)
protected void
b(and arg0, bzt arg1, long arg2)
start(ServerLevel arg0, Goat arg1, long arg2)
method_36280(class_3218 arg0, class_6053 arg1, long arg2)
run(ServerWorld arg0, GoatEntity arg1, long arg2)
m_6735_(C_12_ p_217360_, C_141129_ p_217361_, long arg2)
protected void
c(and arg0, bzt arg1, long arg2)
tick(ServerLevel arg0, Goat arg1, long arg2)
method_36281(class_3218 arg0, class_6053 arg1, long arg2)
keepRunning(ServerWorld arg0, GoatEntity arg1, long arg2)
m_6725_(C_12_ p_217367_, C_141129_ p_217368_, long arg2)
private boolean
c(and arg0, bzt arg1)
hasRammedHornBreakingBlock(ServerLevel arg0, Goat arg1)
method_43535(class_3218 arg0, class_6053 arg1)
shouldSnapHorn(ServerWorld world, GoatEntity goat)
m_217362_(C_12_ p_217364_, C_141129_ arg1)
protected void
b(and arg0, bzt arg1)
finishRam(ServerLevel arg0, Goat arg1)
method_36279(class_3218 arg0, class_6053 arg1)
finishRam(ServerWorld world, GoatEntity goat)
m_217355_(C_12_ p_217357_, C_141129_ arg1)