Class RamTarget
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Goat>
net.minecraft.world.entity.ai.behavior.RamTarget
- All Implemented Interfaces:
BehaviorControl<Goat>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function<Goat,
SoundEvent> private final Function<Goat,
SoundEvent> private final ToDoubleFunction<Goat>
private final Function<Goat,
UniformInt> static final float
private Vec3
private final TargetingConditions
private final float
static final int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionRamTarget
(Function<Goat, UniformInt> p_217342_, TargetingConditions p_217343_, float p_217344_, ToDoubleFunction<Goat> p_217345_, Function<Goat, SoundEvent> p_217346_, Function<Goat, SoundEvent> p_217347_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse
(ServerLevel p_217352_, Goat p_217353_, long p_217354_) protected boolean
checkExtraStartConditions
(ServerLevel p_217349_, Goat p_217350_) protected void
finishRam
(ServerLevel p_217356_, Goat p_217357_) private boolean
hasRammedHornBreakingBlock
(ServerLevel p_217363_, Goat p_217364_) protected void
start
(ServerLevel p_217359_, Goat p_217360_, long p_217361_) protected void
tick
(ServerLevel p_217366_, Goat p_217367_, long p_217368_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart
-
Field Details
-
TIME_OUT_DURATION
public static final int TIME_OUT_DURATION- See Also:
-
RAM_SPEED_FORCE_FACTOR
public static final float RAM_SPEED_FORCE_FACTOR- See Also:
-
getTimeBetweenRams
-
ramTargeting
-
speed
private final float speed -
getKnockbackForce
-
ramDirection
-
getImpactSound
-
getHornBreakSound
-
-
Constructor Details
-
RamTarget
public RamTarget(Function<Goat, UniformInt> p_217342_, TargetingConditions p_217343_, float p_217344_, ToDoubleFunction<Goat> p_217345_, Function<Goat, SoundEvent> p_217346_, Function<Goat, SoundEvent> p_217347_)
-
-
Method Details