Modifier and Type | Method and Description |
---|---|
default void |
clearTitle()
Removes the currently displayed
Title from the player's screen. |
void |
playRecord(com.flowpowered.math.vector.Vector3i position,
RecordType recordType)
Plays the given
RecordType at the given position. |
void |
playSound(SoundType sound,
SoundCategory category,
com.flowpowered.math.vector.Vector3d position,
double volume)
Plays the given
SoundType at the given position. |
void |
playSound(SoundType sound,
SoundCategory category,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch)
Plays the given
SoundType at the given position, with the
category SoundCategories.MASTER . |
void |
playSound(SoundType sound,
SoundCategory category,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch,
double minVolume)
Plays the given
SoundType at the given position. |
default void |
playSound(SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume)
Plays the given
SoundType at the given position, with the
category SoundCategories.MASTER . |
default void |
playSound(SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch)
Plays the given
SoundType at the given position, with the
category SoundCategories.MASTER . |
default void |
playSound(SoundType sound,
com.flowpowered.math.vector.Vector3d position,
double volume,
double pitch,
double minVolume)
Plays the given
SoundType at the given position, with the
category SoundCategories.MASTER . |
void |
resetBlockChange(int x,
int y,
int z)
Resets the client's view of the provided position to what
actually exists in the
World . |
default void |
resetBlockChange(com.flowpowered.math.vector.Vector3i vec)
Resets the client's view of the provided position to what
actually exists in the
World . |
default void |
resetTitle()
Removes the currently displayed
Title from the player and resets
all settings back to default values. |
void |
sendBlockChange(int x,
int y,
int z,
BlockState state)
Sends a client-only block change.
|
default void |
sendBlockChange(com.flowpowered.math.vector.Vector3i vec,
BlockState state)
Sends a client-only block change.
|
void |
sendBookView(BookView bookView)
Sends a
BookView to this viewer. |
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 |
stopRecord(com.flowpowered.math.vector.Vector3i position)
Stops the record that is playing at the given position.
|
void |
stopSounds()
Stops all the sounds.
|
void |
stopSounds(SoundCategory category)
Stops all the sounds that are played in the
given
SoundCategory . |
void |
stopSounds(SoundType sound)
Stops all the sounds of the given
SoundType . |
void |
stopSounds(SoundType sound,
SoundCategory category)
Stops all the sounds of the given
SoundType that
are played in the given SoundCategory . |
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 playersdefault void playSound(SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume)
SoundType
at the given position, with the
category SoundCategories.MASTER
. 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, SoundCategory category, 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 playcategory
- The category to play the sound withposition
- The position to play the soundvolume
- The volume to play the sound at, usually between 0 and 2default void playSound(SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume, double pitch)
SoundType
at the given position, with the
category SoundCategories.MASTER
. 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, SoundCategory category, com.flowpowered.math.vector.Vector3d position, double volume, double pitch)
SoundType
at the given position, with the
category SoundCategories.MASTER
. All players within range
will hear the sound with the given volume.sound
- The sound to playcategory
- The category to play the sound withposition
- 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 2default void playSound(SoundType sound, com.flowpowered.math.vector.Vector3d position, double volume, double pitch, double minVolume)
SoundType
at the given position, with the
category SoundCategories.MASTER
. 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 playSound(SoundType sound, SoundCategory category, 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 playcategory
- The category to play the sound withposition
- 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 stopSounds()
void stopSounds(SoundType sound)
SoundType
.sound
- The sound typevoid stopSounds(SoundCategory category)
SoundCategory
.category
- The sound categoryvoid stopSounds(SoundType sound, SoundCategory category)
SoundType
that
are played in the given SoundCategory
.sound
- The sound typecategory
- The sound categoryvoid playRecord(com.flowpowered.math.vector.Vector3i position, RecordType recordType)
RecordType
at the given position. The benefit of playing
RecordType
instead of a SoundType
allows you to stop them through
the stopRecord(Vector3i)
. Playing a new RecordType
at the same
position will cancel the currently playing one.position
- The positionrecordType
- The record typevoid stopRecord(com.flowpowered.math.vector.Vector3i position)
position
- The positionvoid 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.void sendBookView(BookView bookView)
BookView
to this viewer.bookView
- BookView to senddefault void sendBlockChange(com.flowpowered.math.vector.Vector3i vec, BlockState state)
This will not change the World
in any way.
vec
- The positionstate
- The block statevoid sendBlockChange(int x, int y, int z, BlockState state)
This will not change the World
in any way.
x
- The x positiony
- The y positionz
- The z positionstate
- The block statedefault void resetBlockChange(com.flowpowered.math.vector.Vector3i vec)
World
.
This is useful for resetting what the client sees
after sending a block change
.
vec
- The positionvoid resetBlockChange(int x, int y, int z)
World
.
This is useful for resetting what the client sees
after sending a block change
.
x
- The x positiony
- The y positionz
- The z position