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 Details

  • 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

      public MovingLoopingSoundEntityManager getSoundManager()
      Specified by:
      getSoundManager in interface EntityLoopingSoundInterface
    • 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:
      addSound in interface EntityLoopingSoundInterface
    • getFadingSoundManager

      public MovingLoopingFadingDistanceSoundEntityManager getFadingSoundManager()
      Specified by:
      getFadingSoundManager in interface EntityLoopingFadingDistanceSoundInterface
    • 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:
      addFadingDistanceSound in interface EntityLoopingFadingDistanceSoundInterface