Package me.hackware.api.event.impl
Class SoundPlayEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.SoundPlayEvent
Fired when the client level is about to play a sound.
Cancelling this event prevents the sound from being played.
-
Constructor Summary
ConstructorsConstructorDescriptionSoundPlayEvent(net.minecraft.sounds.SoundEvent sound, net.minecraft.sounds.SoundSource source, double x, double y, double z, float volume, float pitch) -
Method Summary
Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
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()
-