Package net.frozenblock.lib.sound.mixin
Class EntityMixin
java.lang.Object
net.frozenblock.lib.sound.mixin.EntityMixin
- All Implemented Interfaces:
EntityLoopingFadingDistanceSoundInterface,EntityLoopingSoundInterface
public abstract class EntityMixin
extends Object
implements EntityLoopingSoundInterface, EntityLoopingFadingDistanceSoundInterface
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFadingDistanceSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.resources.ResourceLocation sound2ID, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath, float fadeDist, float maxDist) voidaddSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath) voidfrozenLib$loadLoopingSoundData(net.minecraft.nbt.CompoundTag compoundTag, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info) voidfrozenLib$saveLoopingSoundData(net.minecraft.nbt.CompoundTag compoundTag, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.nbt.CompoundTag> info) voidfrozenLib$tickSounds(org.spongepowered.asm.mixin.injection.callback.CallbackInfo info)
-
Field Details
-
frozenLib$loopingSoundManager
-
frozenLib$loopingFadingDistanceSoundManager
-
-
Constructor Details
-
EntityMixin
public EntityMixin()
-
-
Method Details
-
frozenLib$saveLoopingSoundData
public void frozenLib$saveLoopingSoundData(net.minecraft.nbt.CompoundTag compoundTag, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.minecraft.nbt.CompoundTag> info) -
frozenLib$loadLoopingSoundData
public void frozenLib$loadLoopingSoundData(net.minecraft.nbt.CompoundTag compoundTag, org.spongepowered.asm.mixin.injection.callback.CallbackInfo info) -
frozenLib$tickSounds
public void frozenLib$tickSounds(org.spongepowered.asm.mixin.injection.callback.CallbackInfo info) -
getSoundManager
- Specified by:
getSoundManagerin interfaceEntityLoopingSoundInterface
-
addSound
public void addSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath) - Specified by:
addSoundin interfaceEntityLoopingSoundInterface
-
getFadingSoundManager
- Specified by:
getFadingSoundManagerin interfaceEntityLoopingFadingDistanceSoundInterface
-
addFadingDistanceSound
public void addFadingDistanceSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.resources.ResourceLocation sound2ID, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath, float fadeDist, float maxDist) - Specified by:
addFadingDistanceSoundin interfaceEntityLoopingFadingDistanceSoundInterface
-