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, applyToEveryoneExcept
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, applyToEveryoneExcept
public TridentSoundEffect(World world, SoundEffectType type)
public SoundEffectType type()
Effect
type
in interface Effect<SoundEffectType>
public void setType(SoundEffectType type)
Effect
setType
in interface Effect<SoundEffectType>
type
- The type of the effectpublic void setPosition(Vector vector)
RemoteEffect
setPosition
in interface RemoteEffect<SoundEffectType>
vector
- The vector of the effectpublic void setVolume(float volume)
SoundEffect
setVolume
in interface SoundEffect
volume
- The volume of the sound (1 is 100%, can be higher)public void setPitch(int pitch)
SoundEffect
setPitch
in interface SoundEffect
pitch
- The pitch of the sound (63 is 100%, can be higher)public float volume()
SoundEffect
volume
in interface SoundEffect
public int pitch()
SoundEffect
pitch
in interface SoundEffect
public OutPacket getPacket()
getPacket
in class TridentEffect<SoundEffectType>
Copyright © 2016. All rights reserved.