Class BiomeMusic
java.lang.Object
de.freesoccerhdx.advancedworldcreatorapi.biome.BiomeMusic
Represents an Object to store Data about the Music to play in a CustomBiome
-
Constructor Summary
ConstructorDescriptionBiomeMusic
(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 TypeMethodDescriptionint
Gets the Maximum ticks before the Music startsint
Gets the Minimum ticks before the Music startsorg.bukkit.Sound
getSound()
Gets the Sound/Music that will randomly playboolean
Gets if this CustomBiome-Music will replace another playing Music or not
-
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 playmin_delay
- Minimum ticks before Music will startmax_delay
- Maximum ticks before Music will startreplace_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
-