Module gomint.api

Class SoundData


  • public final class SoundData
    extends Object
    Version:
    1.0
    Author:
    geNAZt
    • Method Detail

      • getInstrument

        public SoundData.Instrument getInstrument()
        Get the instrument selected. Is null when no instrument has been selected
        Returns:
        instrument selected or null
      • getBlock

        public Class<? extends Block> getBlock()
        Get the block selected. Is null when no block has been selected
        Returns:
        block selected or null
      • instrument

        public static SoundData instrument​(SoundData.Instrument instrument)
        Generate a new sound data instance for the given instrument
        Parameters:
        instrument - which should be played
        Returns:
        sound data instance
      • block

        public static SoundData block​(Class<? extends Block> blockClass)
        Generate a new sound data instance for the given block
        Parameters:
        blockClass - for which we need a sound
        Returns:
        sound data instance