public class MinecraftDefinitions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HIGHEST_KEY |
static int |
HIGHEST_MIDI_KEY |
static int |
KEY_COUNT |
static int |
LOWEST_KEY |
static int |
LOWEST_MIDI_KEY |
| Constructor and Description |
|---|
MinecraftDefinitions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyExtendedNotesResourcePack(Note note)
Modifies the note to be compatible with the Extended Octave Range Notes resource pack.
|
static int |
applyExtendedNotesResourcePackOld(Note note)
Deprecated.
Replaced by
applyExtendedNotesResourcePack(Note) which also sets the correct instrument automatically. |
static void |
clampNoteKey(Note note)
Clamps the key of the note to fall within minecraft octave range.
|
static void |
instrumentShiftNote(Note note)
"Transposes" the key of the note by shifting the instrument to a higher or lower sounding one.
|
static void |
transposeNoteKey(Note note)
Transposes the key of the note to fall within minecraft octave range.
|
static void |
transposeNoteKey(Note note,
int transposeAmount)
Transposes the key of the note to fall within minecraft octave range.
|
public static final int LOWEST_MIDI_KEY
public static final int HIGHEST_MIDI_KEY
public static final int LOWEST_KEY
public static final int HIGHEST_KEY
public static final int KEY_COUNT
public static void clampNoteKey(Note note)
note - The note to clamppublic static void transposeNoteKey(Note note)
note - The note to transposepublic static void transposeNoteKey(Note note, int transposeAmount)
note - The note to transposetransposeAmount - The amount of keys to transpose bypublic static void instrumentShiftNote(Note note)
note - The note to transposepublic static void applyExtendedNotesResourcePack(Note note)
ShiftedMinecraftInstrument with the correct octaves shift.ShiftedMinecraftInstrument.mcSoundName() can be used to get the correct sound name with the suffix already appended.note - The note to modify@Deprecated public static int applyExtendedNotesResourcePackOld(Note note)
applyExtendedNotesResourcePack(Note) which also sets the correct instrument automatically.note - The note to modify