Class MovingLoopingFadingDistanceSoundEntityManager

java.lang.Object
net.frozenblock.lib.sound.api.MovingLoopingFadingDistanceSoundEntityManager

public class MovingLoopingFadingDistanceSoundEntityManager extends Object
  • Field Details

    • entity

      public final net.minecraft.world.entity.Entity entity
  • Constructor Details

    • MovingLoopingFadingDistanceSoundEntityManager

      public MovingLoopingFadingDistanceSoundEntityManager(net.minecraft.world.entity.Entity entity)
  • Method Details

    • load

      public void load(net.minecraft.nbt.CompoundTag nbt)
    • save

      public void save(net.minecraft.nbt.CompoundTag nbt)
    • addSound

      public void addSound(net.minecraft.resources.ResourceLocation soundID, net.minecraft.resources.ResourceLocation soundID2, net.minecraft.sounds.SoundSource category, float volume, float pitch, net.minecraft.resources.ResourceLocation restrictionId, boolean stopOnDeath, float fadeDist, float maxDist)
    • getSounds

    • tick

      public void tick()
    • syncWithPlayer

      public void syncWithPlayer(net.minecraft.server.level.ServerPlayer serverPlayer)