Interface NoteBlock

All Superinterfaces:
BlockData, Cloneable, Powerable

public interface NoteBlock extends Powerable
'instrument' is the type of sound made when this note block is activated.
'note' is the specified tuned pitch that the instrument will be played in.
Since:
1.13
  • Method Details

    • getInstrument

      @NotNull @NotNull Instrument getInstrument()
      Gets the value of the 'instrument' property.
      Returns:
      the 'instrument' value
      Since:
      1.13
    • setInstrument

      void setInstrument(@NotNull @NotNull Instrument instrument)
      Sets the value of the 'instrument' property.
      Parameters:
      instrument - the new 'instrument' value
      Since:
      1.13
    • getNote

      Gets the value of the 'note' property.
      Returns:
      the 'note' value
      Since:
      1.13
    • setNote

      void setNote(@NotNull @NotNull Note note)
      Sets the value of the 'note' property.
      Parameters:
      note - the new 'note' value
      Since:
      1.13