- Enclosing class:
- XSound
public static class XSound.Record
extends Object
A class to help caching sound properties parsed from config.
- Since:
- 3.0.0
-
-
Constructor Summary
Constructors
Constructor |
Description |
Record(org.bukkit.Sound sound,
org.bukkit.entity.Player player,
org.bukkit.Location location,
float volume,
float pitch,
boolean playAtLocation) |
|
-
Method Summary
Modifier and Type |
Method |
Description |
void |
play() |
Plays the sound with the given options and updating the players location.
|
void |
play(org.bukkit.Location updatedLocation) |
Plays the sound with the updated location.
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
public final org.bukkit.Sound sound
-
public final org.bukkit.entity.Player player
-
public final org.bukkit.Location location
-
public final float volume
-
-
public final boolean playAtLocation
-
Constructor Details
-
public Record(
@Nonnull
org.bukkit.Sound sound,
@Nullable
org.bukkit.entity.Player player,
@Nonnull
org.bukkit.Location location,
float volume,
float pitch,
boolean playAtLocation)
-
Method Details
-
public void play()
Plays the sound with the given options and updating the players location.
- Since:
- 3.0.0
-
public void play(
@Nonnull
org.bukkit.Location updatedLocation)
Plays the sound with the updated location.
- Parameters:
updatedLocation
- the upated location.
- Since:
- 3.0.0