Class XSound.Record
java.lang.Object
fr.maxlego08.zauctionhouse.api.enums.XSound.Record
- Enclosing class:
XSound
A class to help caching sound properties parsed from config.
- Since:
- 3.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRecord(org.bukkit.Sound sound, org.bukkit.entity.Player player, org.bukkit.Location location, float volume, float pitch, boolean playAtLocation) -
Method Summary
-
Field Details
-
sound
public final org.bukkit.Sound sound -
player
public final org.bukkit.entity.Player player -
location
public final org.bukkit.Location location -
volume
public final float volume -
pitch
public final float pitch -
playAtLocation
public final boolean playAtLocation
-
-
Constructor Details
-
Record
public Record(org.bukkit.Sound sound, org.bukkit.entity.Player player, org.bukkit.Location location, float volume, float pitch, boolean playAtLocation)
-
-
Method Details
-
play
public void play()Plays the sound with the given options and updating the players location.- Since:
- 3.0.0
-
play
public void play(org.bukkit.Location updatedLocation) Plays the sound with the updated location.- Parameters:
updatedLocation- the upated location.- Since:
- 3.0.0
-