Uses of Class
net.neoforged.neoforge.common.SoundAction
Package
Description
-
Uses of SoundAction in net.neoforged.neoforge.common
Modifier and TypeFieldDescriptionstatic final SoundAction
SoundActions.BUCKET_EMPTY
When a bucket is emptying a fluid.static final SoundAction
SoundActions.BUCKET_FILL
When a bucket is being filled by a fluid.static final SoundAction
SoundActions.CAULDRON_DRIP
When a Pointed Dripstone drips this fluid into an empty cauldron.static final SoundAction
SoundActions.FLUID_VAPORIZE
When the fluid is being vaporized.Modifier and TypeFieldDescriptionprivate static final Map
<String, SoundAction> SoundAction.ACTIONS
Modifier and TypeMethodDescriptionstatic SoundAction
Gets or creates a newSoundAction
for the given name. -
Uses of SoundAction in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault @Nullable SoundEvent
IEntityExtension.getSoundFromFluidType
(FluidType type, SoundAction action) Returns a sound to play when a certain action is performed by the entity in the fluid. -
Uses of SoundAction in net.neoforged.neoforge.fluids
Modifier and TypeFieldDescriptionprivate final Map
<SoundAction, SoundEvent> FluidType.Properties.sounds
protected final Map
<SoundAction, SoundEvent> FluidType.sounds
A map of actions performed to sound that should be played.Modifier and TypeMethodDescription@Nullable SoundEvent
FluidType.getSound
(Entity entity, SoundAction action) Returns a sound to play when a certain action is performed by the entity in the fluid.@Nullable SoundEvent
FluidType.getSound
(@Nullable Player player, BlockGetter getter, BlockPos pos, SoundAction action) Returns a sound to play when a certain action is performed at a position.@Nullable SoundEvent
FluidType.getSound
(SoundAction action) Returns a sound to play when a certain action is performed.@Nullable SoundEvent
FluidType.getSound
(FluidStack stack, SoundAction action) Returns a sound to play when a certain action is performed.FluidType.Properties.sound
(SoundAction action, SoundEvent sound) Sets a sound to play when a certain action is performed.