Class RamTarget<E extends PathfinderMob>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.RamTarget<E>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate Function<E,SoundEvent>
private ToDoubleFunction<E>
private Function<E,UniformInt>
static float
private Vec3
private TargetingConditions
private float
static int
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
ConstructorDescriptionRamTarget(Function<E,UniformInt> p_182335_, TargetingConditions p_182336_, float p_182337_, ToDoubleFunction<E> p_182338_, Function<E,SoundEvent> p_182339_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse(ServerLevel p_147827_, PathfinderMob p_147828_, long p_147829_)
protected boolean
checkExtraStartConditions(ServerLevel p_147824_, PathfinderMob p_147825_)
protected void
finishRam(ServerLevel p_147835_, E p_147836_)
protected void
start(ServerLevel p_147838_, PathfinderMob p_147839_, long p_147840_)
protected void
tick(ServerLevel p_147842_, E p_147843_, long p_147844_)
-
Field Details
-
TIME_OUT_DURATION
public static final int TIME_OUT_DURATION- See Also:
- Constant Field Values
-
RAM_SPEED_FORCE_FACTOR
public static final float RAM_SPEED_FORCE_FACTOR- See Also:
- Constant Field Values
-
getTimeBetweenRams
-
ramTargeting
-
speed
private final float speed -
getKnockbackForce
-
ramDirection
-
getImpactSound
-
-
Constructor Details
-
RamTarget
public RamTarget(Function<E,UniformInt> p_182335_, TargetingConditions p_182336_, float p_182337_, ToDoubleFunction<E> p_182338_, Function<E,SoundEvent> p_182339_)
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<E extends PathfinderMob>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<E extends PathfinderMob>
-
start
- Overrides:
start
in classBehavior<E extends PathfinderMob>
-
tick
- Overrides:
tick
in classBehavior<E extends PathfinderMob>
-
finishRam
-