Modifier and Type | Method and Description |
---|---|
default void |
clearTitle()
Removes the currently displayed
Title from the player's screen. |
void |
playSound(SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume)
Plays the given
SoundType at the given position. |
void |
playSound(SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch)
Plays the given
SoundType at the given position. |
void |
playSound(SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch,
double minVolume)
Plays the given
SoundType at the given position. |
default void |
resetTitle()
Removes the currently displayed
Title from the player and resets
all settings back to default values. |
void |
sendMessage(ChatType type,
Iterable<Text> messages)
Sends the message(s) with the specified
ChatType on the client. |
void |
sendMessage(ChatType type,
Text... messages)
Sends the message(s) with the specified
ChatType on the client. |
void |
sendTitle(Title title)
Sends a
Title to this player. |
void |
spawnParticles(ParticleEffect particleEffect,
com.flowpowered.math.vector.Vector3d position)
Spawn a
ParticleEffect at a given position. |
void |
spawnParticles(ParticleEffect particleEffect,
com.flowpowered.math.vector.Vector3d position,
int radius)
Spawn a
ParticleEffect at a given position. |
void spawnParticles(ParticleEffect particleEffect, com.flowpowered.math.vector.Vector3d position)
ParticleEffect
at a given position.
All players within a default radius around the position will see the
particles.particleEffect
- The particle effect to spawnposition
- The position at which to spawn the particle effectvoid spawnParticles(ParticleEffect particleEffect, com.flowpowered.math.vector.Vector3d position, int radius)
ParticleEffect
at a given position.
All players within a given radius around the position will see the
particles.particleEffect
- The particle effect to spawnposition
- The position at which to spawn the particle effectradius
- The radius around the position where the particles can be
seen by playersvoid playSound(SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume)
SoundType
at the given position. All
players within range will hear the sound with the given volume.sound
- The sound to playposition
- The position to play the soundvolume
- The volume to play the sound at, usually between 0 and 2void playSound(SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume, double pitch)
SoundType
at the given position. All
players within range will hear the sound with the given volume.sound
- The sound to playposition
- The position to play the soundvolume
- The volume to play the sound at, usually between 0 and 2pitch
- The modulation of the sound to play at, usually between 0 and 2void playSound(SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume, double pitch, double minVolume)
SoundType
at the given position. All
players within range will hear the sound with the given volume.sound
- The sound to playposition
- The position to play the soundvolume
- The volume to play the sound at, usually between 0 and 2pitch
- The modulation of the sound to play at, usually between 0 and 2minVolume
- The minimum volume to play the sound at, usually between 0 and 2void sendMessage(ChatType type, Text... messages)
ChatType
on the client.type
- The chat type to send the messages tomessages
- The message(s) to sendvoid sendMessage(ChatType type, Iterable<Text> messages)
ChatType
on the client.type
- The chat type to send the messages tomessages
- The message(s) to sendvoid sendTitle(Title title)
Title
to this player.title
- The Title
to send to the playerdefault void resetTitle()
Title
from the player and resets
all settings back to default values.default void clearTitle()
Title
from the player's screen.