Package net.islandearth.rpgregions.utils
Class XSound.Record
java.lang.Object
net.islandearth.rpgregions.utils.XSound.Record
- Enclosing class:
- XSound
A class to help caching sound properties parsed from config.
- Since:
- 3.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionatLocation(org.bukkit.Location location) forPlayer(org.bukkit.entity.Player player) forPlayerAtLocation(org.bukkit.entity.Player player, org.bukkit.Location location) voidplay()Plays the sound with the given options and updating the players location.voidplay(org.bukkit.Location updatedLocation) Plays the sound with the updated location.
-
Field Details
-
sound
-
volume
public final float volume -
pitch
public final float pitch -
playAtLocation
public boolean playAtLocation -
player
@Nullable public org.bukkit.entity.Player player -
location
@Nullable public org.bukkit.Location location
-
-
Constructor Details
-
Record
public Record(@Nonnull XSound sound, @Nullable org.bukkit.entity.Player player, @Nullable org.bukkit.Location location, float volume, float pitch, boolean playAtLocation)
-
-
Method Details
-
forPlayer
-
atLocation
-
forPlayerAtLocation
public XSound.Record forPlayerAtLocation(@Nullable org.bukkit.entity.Player player, @Nullable org.bukkit.Location location) -
play
public void play()Plays the sound with the given options and updating the players location.- Since:
- 3.0.0
-
play
public void play(@Nonnull org.bukkit.Location updatedLocation) Plays the sound with the updated location.- Parameters:
updatedLocation- the upated location.- Since:
- 3.0.0
-