Class NoteBlockEvent

    • Field Detail

      • noteId

        private int noteId
    • Method Detail

      • getNote

        public NoteBlockEvent.Note getNote()
        Get the Note the Noteblock is tuned to
        Returns:
        the Note
      • getOctave

        public NoteBlockEvent.Octave getOctave()
        Get the Octave of the note this Noteblock is tuned to
        Returns:
        the Octave
      • getVanillaNoteId

        public int getVanillaNoteId()
        get the vanilla note-id, which contains information about both Note and Octave. Most modders should not need this.
        Returns:
        an ID for the note
      • setNote

        public void setNote​(NoteBlockEvent.Note note,
                            NoteBlockEvent.Octave octave)
        Set Note and Octave for this event.
        If octave is Octave.HIGH, note may only be Note.F_SHARP
        Parameters:
        note - the Note
        octave - the Octave