Class SoundPlayEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.SoundPlayEvent

public class SoundPlayEvent extends Event
Fired when the client level is about to play a sound. Cancelling this event prevents the sound from being played.
  • Constructor Details

    • SoundPlayEvent

      public SoundPlayEvent(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource source, double x, double y, double z, float volume, float pitch)
  • Method Details

    • getSound

      public net.minecraft.sounds.SoundEvent getSound()
    • getSource

      public net.minecraft.sounds.SoundSource getSource()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getVolume

      public float getVolume()
    • getPitch

      public float getPitch()