Interface SoundInstance

All Known Subinterfaces:
TickableSoundInstance
All Known Implementing Classes:
AbstractSoundInstance, AbstractTickableSoundInstance, BeeAggressiveSoundInstance, BeeFlyingSoundInstance, BeeSoundInstance, BiomeAmbientSoundsHandler.LoopSoundInstance, ElytraOnPlayerSoundInstance, EntityBoundSoundInstance, GuardianAttackSoundInstance, MinecartSoundInstance, RidingMinecartSoundInstance, SimpleSoundInstance, UnderwaterAmbientSoundInstances.SubSound, UnderwaterAmbientSoundInstances.UnderwaterAmbientSoundInstance

public interface SoundInstance
  • Method Details

    • getLocation

      ResourceLocation getLocation()
    • resolve

      @Nullable WeighedSoundEvents resolve(SoundManager p_119841_)
    • getSound

      Sound getSound()
    • getSource

      SoundSource getSource()
    • isLooping

      boolean isLooping()
    • isRelative

      boolean isRelative()
    • getDelay

      int getDelay()
    • getVolume

      float getVolume()
    • getPitch

      float getPitch()
    • getX

      double getX()
    • getY

      double getY()
    • getZ

      double getZ()
    • getAttenuation

      SoundInstance.Attenuation getAttenuation()
    • canStartSilent

      default boolean canStartSilent()
    • canPlaySound

      default boolean canPlaySound()