Class XSound.Record

  • Enclosing class:
    XSound

    public static class XSound.Record
    extends Object
    A class to help caching sound properties parsed from config.
    Since:
    3.0.0
    • Field Detail

      • 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 Detail

      • Record

        public Record​(@Nonnull
                      XSound sound,
                      @Nullable
                      org.bukkit.entity.Player player,
                      @Nullable
                      org.bukkit.Location location,
                      float volume,
                      float pitch,
                      boolean playAtLocation)
    • Method Detail

      • 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