Class RamImpactTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<GoatEntity>
net.minecraft.entity.ai.brain.task.RamImpactTask
- Mappings:
Namespace Name official bfe
intermediary net/minecraft/class_6338
named net/minecraft/entity/ai/brain/task/RamImpactTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<GoatEntity,
UniformIntProvider> private Vec3d
private final Function<GoatEntity,
SoundEvent> private final Function<GoatEntity,
SoundEvent> static final int
private final float
static final float
private final ToDoubleFunction<GoatEntity>
private final TargetPredicate
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorsConstructorDescriptionRamImpactTask
(Function<GoatEntity, UniformIntProvider> cooldownRangeFactory, TargetPredicate targetPredicate, float speed, ToDoubleFunction<GoatEntity> strengthMultiplierFactory, Function<GoatEntity, SoundEvent> impactSoundFactory, Function<GoatEntity, SoundEvent> hornBreakSoundFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRam
(ServerWorld world, GoatEntity goat) protected void
keepRunning
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected void
run
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, GoatEntity goatEntity) private boolean
shouldSnapHorn
(ServerWorld world, GoatEntity goat) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
RUN_TIME
public static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbfe;a:I
intermediary field_33474
Lnet/minecraft/class_6338;field_33474:I
named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;RUN_TIME:I
-
SPEED_STRENGTH_MULTIPLIER
public static final float SPEED_STRENGTH_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbfe;d:F
intermediary field_33475
Lnet/minecraft/class_6338;field_33475:F
named SPEED_STRENGTH_MULTIPLIER
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;SPEED_STRENGTH_MULTIPLIER:F
-
cooldownRangeFactory
- Mappings:
Namespace Name Mixin selector official e
Lbfe;e:Ljava/util/function/Function;
intermediary field_33476
Lnet/minecraft/class_6338;field_33476:Ljava/util/function/Function;
named cooldownRangeFactory
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;cooldownRangeFactory:Ljava/util/function/Function;
-
targetPredicate
- Mappings:
Namespace Name Mixin selector official f
Lbfe;f:Lbmf;
intermediary field_33477
Lnet/minecraft/class_6338;field_33477:Lnet/minecraft/class_4051;
named targetPredicate
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official g
Lbfe;g:F
intermediary field_33479
Lnet/minecraft/class_6338;field_33479:F
named speed
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;speed:F
-
strengthMultiplierFactory
- Mappings:
Namespace Name Mixin selector official h
Lbfe;h:Ljava/util/function/ToDoubleFunction;
intermediary field_33480
Lnet/minecraft/class_6338;field_33480:Ljava/util/function/ToDoubleFunction;
named strengthMultiplierFactory
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;strengthMultiplierFactory:Ljava/util/function/ToDoubleFunction;
-
direction
- Mappings:
Namespace Name Mixin selector official i
Lbfe;i:Ldwq;
intermediary field_33481
Lnet/minecraft/class_6338;field_33481:Lnet/minecraft/class_243;
named direction
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;direction:Lnet/minecraft/util/math/Vec3d;
-
impactSoundFactory
- Mappings:
Namespace Name Mixin selector official j
Lbfe;j:Ljava/util/function/Function;
intermediary field_33482
Lnet/minecraft/class_6338;field_33482:Ljava/util/function/Function;
named impactSoundFactory
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;impactSoundFactory:Ljava/util/function/Function;
-
hornBreakSoundFactory
- Mappings:
Namespace Name Mixin selector official k
Lbfe;k:Ljava/util/function/Function;
intermediary field_39044
Lnet/minecraft/class_6338;field_39044:Ljava/util/function/Function;
named hornBreakSoundFactory
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;hornBreakSoundFactory:Ljava/util/function/Function;
-
-
Constructor Details
-
RamImpactTask
public RamImpactTask(Function<GoatEntity, UniformIntProvider> cooldownRangeFactory, TargetPredicate targetPredicate, float speed, ToDoubleFunction<GoatEntity> strengthMultiplierFactory, Function<GoatEntity, SoundEvent> impactSoundFactory, Function<GoatEntity, SoundEvent> hornBreakSoundFactory) - Mappings:
Namespace Name Mixin selector official <init>
Lbfe;<init>(Ljava/util/function/Function;Lbmf;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_6338;<init>(Ljava/util/function/Function;Lnet/minecraft/class_4051;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;<init>(Ljava/util/function/Function;Lnet/minecraft/entity/ai/TargetPredicate;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;Ljava/util/function/Function;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<GoatEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbfe;a(Lagg;Lbow;)Z
intermediary method_36277
Lnet/minecraft/class_6338;method_36277(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<GoatEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbfe;a(Lagg;Lbow;J)Z
intermediary method_36278
Lnet/minecraft/class_6338;method_36278(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)Z
-
run
- Overrides:
run
in classTask<GoatEntity>
- Mappings:
Namespace Name Mixin selector official b
Lbfe;b(Lagg;Lbow;J)V
intermediary method_36280
Lnet/minecraft/class_6338;method_36280(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)V
named run
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<GoatEntity>
- Mappings:
Namespace Name Mixin selector official c
Lbfe;c(Lagg;Lbow;J)V
intermediary method_36281
Lnet/minecraft/class_6338;method_36281(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)V
-
shouldSnapHorn
- Mappings:
Namespace Name Mixin selector official c
Lbfe;c(Lagg;Lbow;)Z
intermediary method_43535
Lnet/minecraft/class_6338;method_43535(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Z
named shouldSnapHorn
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldSnapHorn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Z
-
finishRam
- Mappings:
Namespace Name Mixin selector official b
Lbfe;b(Lagg;Lbow;)V
intermediary method_36279
Lnet/minecraft/class_6338;method_36279(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)V
named finishRam
Lnet/minecraft/entity/ai/brain/task/RamImpactTask;finishRam(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)V
-