public class TridentSoundEffect extends TridentRemoteEffect<SoundEffectType> implements SoundEffect
| Constructor and Description |
|---|
TridentSoundEffect(World world,
SoundEffectType type) |
| Modifier and Type | Method and Description |
|---|---|
OutPacket |
getPacket() |
int |
pitch()
Returns the pitch of the sound
|
void |
setPitch(int pitch)
Set the pitch of the sound
|
void |
setPosition(Vector vector)
Set the position of the effect
|
void |
setType(SoundEffectType type)
Set the type of the effect
|
void |
setVolume(float volume)
Set the volume of the sound
|
SoundEffectType |
type()
The type of the effect
|
float |
volume()
Returns the volume of the sound
|
apply, apply, applyToEveryoneExceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, apply, applyToEveryoneExceptpublic TridentSoundEffect(World world, SoundEffectType type)
public SoundEffectType type()
Effecttype in interface Effect<SoundEffectType>public void setType(SoundEffectType type)
EffectsetType in interface Effect<SoundEffectType>type - The type of the effectpublic void setPosition(Vector vector)
RemoteEffectsetPosition in interface RemoteEffect<SoundEffectType>vector - The vector of the effectpublic void setVolume(float volume)
SoundEffectsetVolume in interface SoundEffectvolume - The volume of the sound (1 is 100%, can be higher)public void setPitch(int pitch)
SoundEffectsetPitch in interface SoundEffectpitch - The pitch of the sound (63 is 100%, can be higher)public float volume()
SoundEffectvolume in interface SoundEffectpublic int pitch()
SoundEffectpitch in interface SoundEffectpublic OutPacket getPacket()
getPacket in class TridentEffect<SoundEffectType>Copyright © 2016. All rights reserved.