java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.biome.BiomeMusic

public class BiomeMusic extends Object
Represents an Object to store Data about the Music to play in a CustomBiome
  • Constructor Summary

    Constructors
    Constructor
    Description
    BiomeMusic(org.bukkit.Sound sound, int min_delay, int max_delay, boolean replace_current_music)
    Creates the BiomeMusic-Object with provided Data
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Gets the Maximum ticks before the Music starts
    int
    Gets the Minimum ticks before the Music starts
    org.bukkit.Sound
    Gets the Sound/Music that will randomly play
    boolean
    Gets if this CustomBiome-Music will replace another playing Music or not

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BiomeMusic

      public BiomeMusic(org.bukkit.Sound sound, int min_delay, int max_delay, boolean replace_current_music)
      Creates the BiomeMusic-Object with provided Data
      Parameters:
      sound - The Sound/Music to play
      min_delay - Minimum ticks before Music will start
      max_delay - Maximum ticks before Music will start
      replace_current_music - Whether it will replace active Music or not
  • Method Details

    • getSound

      public org.bukkit.Sound getSound()
      Gets the Sound/Music that will randomly play
      Returns:
      The Sound/Music to play
    • getMinDelay

      public int getMinDelay()
      Gets the Minimum ticks before the Music starts
      Returns:
      the min delay in ticks
    • getMaxDelay

      public int getMaxDelay()
      Gets the Maximum ticks before the Music starts
      Returns:
      the max delay in ticks
    • isReplacingCurrentMusic

      public boolean isReplacingCurrentMusic()
      Gets if this CustomBiome-Music will replace another playing Music or not
      Returns:
      If replace or not