Class RamImpactTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<GoatEntity>
net.minecraft.entity.ai.brain.task.RamImpactTask
- All Implemented Interfaces:
Task<GoatEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/RamImpactTaskintermediary net/minecraft/class_6338official bwv
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Function<GoatEntity, UniformIntProvider> private Vec3dprivate final Function<GoatEntity, SoundEvent> private final Function<GoatEntity, SoundEvent> static final intprivate final floatstatic final floatprivate final ToDoubleFunction<GoatEntity> private final TargetPredicateFields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
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 voidfinishRam(ServerWorld world, GoatEntity goat) protected voidkeepRunning(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected voidrun(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected booleanshouldKeepRunning(ServerWorld serverWorld, GoatEntity goatEntity, long long2) protected booleanshouldRun(ServerWorld serverWorld, GoatEntity goatEntity) private booleanshouldSnapHorn(ServerWorld world, GoatEntity goat) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
finishRunning, getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
RUN_TIME
public static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_TIMELnet/minecraft/entity/ai/brain/task/RamImpactTask;RUN_TIME:Iintermediary field_33474Lnet/minecraft/class_6338;field_33474:Iofficial cLbwv;c:I
-
SPEED_STRENGTH_MULTIPLIER
public static final float SPEED_STRENGTH_MULTIPLIER- See Also:
- Mappings:
Namespace Name Mixin selector named SPEED_STRENGTH_MULTIPLIERLnet/minecraft/entity/ai/brain/task/RamImpactTask;SPEED_STRENGTH_MULTIPLIER:Fintermediary field_33475Lnet/minecraft/class_6338;field_33475:Fofficial dLbwv;d:F
-
cooldownRangeFactory
- Mappings:
Namespace Name Mixin selector named cooldownRangeFactoryLnet/minecraft/entity/ai/brain/task/RamImpactTask;cooldownRangeFactory:Ljava/util/function/Function;intermediary field_33476Lnet/minecraft/class_6338;field_33476:Ljava/util/function/Function;official eLbwv;e:Ljava/util/function/Function;
-
targetPredicate
- Mappings:
Namespace Name Mixin selector named targetPredicateLnet/minecraft/entity/ai/brain/task/RamImpactTask;targetPredicate:Lnet/minecraft/entity/ai/TargetPredicate;intermediary field_33477Lnet/minecraft/class_6338;field_33477:Lnet/minecraft/class_4051;official fLbwv;f:Lced;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector named speedLnet/minecraft/entity/ai/brain/task/RamImpactTask;speed:Fintermediary field_33479Lnet/minecraft/class_6338;field_33479:Fofficial gLbwv;g:F
-
strengthMultiplierFactory
- Mappings:
Namespace Name Mixin selector named strengthMultiplierFactoryLnet/minecraft/entity/ai/brain/task/RamImpactTask;strengthMultiplierFactory:Ljava/util/function/ToDoubleFunction;intermediary field_33480Lnet/minecraft/class_6338;field_33480:Ljava/util/function/ToDoubleFunction;official hLbwv;h:Ljava/util/function/ToDoubleFunction;
-
direction
- Mappings:
Namespace Name Mixin selector named directionLnet/minecraft/entity/ai/brain/task/RamImpactTask;direction:Lnet/minecraft/util/math/Vec3d;intermediary field_33481Lnet/minecraft/class_6338;field_33481:Lnet/minecraft/class_243;official iLbwv;i:Leww;
-
impactSoundFactory
- Mappings:
Namespace Name Mixin selector named impactSoundFactoryLnet/minecraft/entity/ai/brain/task/RamImpactTask;impactSoundFactory:Ljava/util/function/Function;intermediary field_33482Lnet/minecraft/class_6338;field_33482:Ljava/util/function/Function;official jLbwv;j:Ljava/util/function/Function;
-
hornBreakSoundFactory
- Mappings:
Namespace Name Mixin selector named hornBreakSoundFactoryLnet/minecraft/entity/ai/brain/task/RamImpactTask;hornBreakSoundFactory:Ljava/util/function/Function;intermediary field_39044Lnet/minecraft/class_6338;field_39044:Ljava/util/function/Function;official kLbwv;k: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 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;)Vintermediary <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;)Vofficial <init>Lbwv;<init>(Ljava/util/function/Function;Lced;FLjava/util/function/ToDoubleFunction;Ljava/util/function/Function;Ljava/util/function/Function;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classMultiTickTask<GoatEntity>- Mappings:
Namespace Name Mixin selector named shouldRunLnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Zintermediary method_36277Lnet/minecraft/class_6338;method_36277(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Zofficial aLbwv;a(Laqt;Lchc;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunningin classMultiTickTask<GoatEntity>- Mappings:
Namespace Name Mixin selector named shouldKeepRunningLnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)Zintermediary method_36278Lnet/minecraft/class_6338;method_36278(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)Zofficial aLbwv;a(Laqt;Lchc;J)Z
-
run
- Overrides:
runin classMultiTickTask<GoatEntity>- Mappings:
Namespace Name Mixin selector named runLnet/minecraft/entity/ai/brain/task/RamImpactTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)Vintermediary method_36280Lnet/minecraft/class_6338;method_36280(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)Vofficial bLbwv;b(Laqt;Lchc;J)V
-
keepRunning
- Overrides:
keepRunningin classMultiTickTask<GoatEntity>- Mappings:
Namespace Name Mixin selector named keepRunningLnet/minecraft/entity/ai/brain/task/RamImpactTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;J)Vintermediary method_36281Lnet/minecraft/class_6338;method_36281(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;J)Vofficial cLbwv;c(Laqt;Lchc;J)V
-
shouldSnapHorn
- Mappings:
Namespace Name Mixin selector named shouldSnapHornLnet/minecraft/entity/ai/brain/task/RamImpactTask;shouldSnapHorn(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Zintermediary method_43535Lnet/minecraft/class_6338;method_43535(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Zofficial cLbwv;c(Laqt;Lchc;)Z
-
finishRam
- Mappings:
Namespace Name Mixin selector named finishRamLnet/minecraft/entity/ai/brain/task/RamImpactTask;finishRam(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/GoatEntity;)Vintermediary method_36279Lnet/minecraft/class_6338;method_36279(Lnet/minecraft/class_3218;Lnet/minecraft/class_6053;)Vofficial bLbwv;b(Laqt;Lchc;)V
-