Class PlaySoundAtEntityEvent

    • Field Detail

      • volume

        private final float volume
      • pitch

        private final float pitch
      • newVolume

        private float newVolume
      • newPitch

        private float newPitch
    • Constructor Detail

      • PlaySoundAtEntityEvent

        public PlaySoundAtEntityEvent​(Entity entity,
                                      SoundEvent name,
                                      SoundCategory category,
                                      float volume,
                                      float pitch)
    • Method Detail

      • getDefaultVolume

        public float getDefaultVolume()
      • getDefaultPitch

        public float getDefaultPitch()
      • getVolume

        public float getVolume()
      • getPitch

        public float getPitch()
      • setSound

        public void setSound​(SoundEvent value)
      • setCategory

        public void setCategory​(SoundCategory category)
      • setVolume

        public void setVolume​(float value)
      • setPitch

        public void setPitch​(float value)