net.minecraft.world.entity.ai.behavior

public class RamTarget

extends Behavior<Goat>

All mapped superinterfaces:

BehaviorControl

bzp
net.minecraft.world.entity.ai.behavior.RamTarget
net.minecraft.class_6338
net.minecraft.entity.ai.brain.task.RamImpactTask
net.minecraft.world.entity.ai.behavior.RamTarget

Field summary

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

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(ash arg0, cjx arg1)
checkExtraStartConditions(ServerLevel arg0, Goat arg1)
method_36277(class_3218 arg0, class_6053 arg1)
shouldRun(ServerWorld arg0, GoatEntity arg1)
protected boolean
a(ash arg0, cjx 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)
protected void
b(ash arg0, cjx 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)
protected void
c(ash arg0, cjx 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)
private boolean
c(ash arg0, cjx arg1)
hasRammedHornBreakingBlock(ServerLevel arg0, Goat arg1)
method_43535(class_3218 arg0, class_6053 arg1)
shouldSnapHorn(ServerWorld world, GoatEntity goat)
protected void
b(ash arg0, cjx arg1)
finishRam(ServerLevel arg0, Goat arg1)
method_36279(class_3218 arg0, class_6053 arg1)
finishRam(ServerWorld world, GoatEntity goat)