diff --git a/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/DrumNoteLabel.java b/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/DrumNoteLabel.java index 08d45236..1d409059 100644 --- a/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/DrumNoteLabel.java +++ b/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/DrumNoteLabel.java @@ -4,7 +4,7 @@ import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.NoteButton; import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.label.INoteLabel; import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.label.NoteLabelSupplier; -import com.cstav.genshinstrument.client.keyMaps.KeyMappings.DrumKeys; +import com.cstav.genshinstrument.client.keyMaps.InstrumentKeyMappings.DrumKeys; import net.minecraft.network.chat.Component; import net.minecraftforge.api.distmarker.Dist; diff --git a/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/NoteGridLabel.java b/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/NoteGridLabel.java index 8aaf74d4..ad15ceb7 100644 --- a/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/NoteGridLabel.java +++ b/src/main/java/com/cstav/genshinstrument/client/config/enumType/label/NoteGridLabel.java @@ -5,7 +5,7 @@ import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.label.NoteLabelSupplier; import com.cstav.genshinstrument.client.gui.screens.instrument.partial.notegrid.AbstractGridInstrumentScreen; import com.cstav.genshinstrument.client.gui.screens.instrument.partial.notegrid.NoteGridButton; -import com.cstav.genshinstrument.client.keyMaps.KeyMappings; +import com.cstav.genshinstrument.client.keyMaps.InstrumentKeyMappings; import com.cstav.genshinstrument.util.LabelUtil; import net.minecraft.network.chat.Component; @@ -17,7 +17,7 @@ */ public enum NoteGridLabel implements INoteLabel { KEYBOARD_LAYOUT((note) -> INoteLabel.upperComponent( - KeyMappings.GRID_INSTRUMENT_MAPPINGS[ng(note).column][ng(note).row].getDisplayName() + InstrumentKeyMappings.GRID_INSTRUMENT_MAPPINGS[ng(note).column][ng(note).row].getDisplayName() )), NOTE_NAME((note) -> Component.literal( LabelUtil.getCutNoteName(ng(note)) diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/drum/DrumButtonType.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/drum/DrumButtonType.java index efb39332..0615c81b 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/drum/DrumButtonType.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/drum/DrumButtonType.java @@ -1,8 +1,8 @@ package com.cstav.genshinstrument.client.gui.screens.instrument.drum; import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.label.INoteLabel; -import com.cstav.genshinstrument.client.keyMaps.KeyMappings; -import com.cstav.genshinstrument.client.keyMaps.KeyMappings.DrumKeys; +import com.cstav.genshinstrument.client.keyMaps.InstrumentKeyMappings; +import com.cstav.genshinstrument.client.keyMaps.InstrumentKeyMappings.DrumKeys; import com.cstav.genshinstrument.sound.ModSounds; import com.cstav.genshinstrument.sound.NoteSound; @@ -35,7 +35,7 @@ public String getTransKey() { // Seperated for server compatibility @OnlyIn(Dist.CLIENT) public DrumKeys getKeys() { - return (this == DON) ? KeyMappings.DON : KeyMappings.KA; + return (this == DON) ? InstrumentKeyMappings.DON : InstrumentKeyMappings.KA; } } \ No newline at end of file diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java index a66db154..7f8f4b3e 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/AbstractInstrumentScreen.java @@ -11,7 +11,7 @@ import com.cstav.genshinstrument.client.gui.screens.instrument.GenshinConsentScreen; import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.NoteButton; import com.cstav.genshinstrument.client.gui.screens.options.instrument.AbstractInstrumentOptionsScreen; -import com.cstav.genshinstrument.client.keyMaps.KeyMappings; +import com.cstav.genshinstrument.client.keyMaps.InstrumentKeyMappings; import com.cstav.genshinstrument.networking.ModPacketHandler; import com.cstav.genshinstrument.networking.buttonidentifier.NoteButtonIdentifier; import com.cstav.genshinstrument.networking.packet.instrument.CloseInstrumentPacket; @@ -250,12 +250,12 @@ public boolean keyReleased(int pKeyCode, int pScanCode, int pModifiers) { private boolean pitchChanged; protected boolean checkPitchInstrumentUp(int pKeyCode, int pScanCode) { - if (!pitchChanged && KeyMappings.PITCH_UP_MODIFIER.get().matches(pKeyCode, pScanCode)) { + if (!pitchChanged && InstrumentKeyMappings.PITCH_UP_MODIFIER.get().matches(pKeyCode, pScanCode)) { setPitch(getPitch() + 1); pitchChanged = true; return true; } - if (!pitchChanged && KeyMappings.PITCH_DOWN_MODIFIER.get().matches(pKeyCode, pScanCode)) { + if (!pitchChanged && InstrumentKeyMappings.PITCH_DOWN_MODIFIER.get().matches(pKeyCode, pScanCode)) { setPitch(getPitch() - 1); pitchChanged = true; return true; @@ -264,12 +264,12 @@ protected boolean checkPitchInstrumentUp(int pKeyCode, int pScanCode) { return false; } protected boolean checkPitchInstrumentDown(int pKeyCode, int pScanCode) { - if (pitchChanged && KeyMappings.PITCH_UP_MODIFIER.get().matches(pKeyCode, pScanCode)) { + if (pitchChanged && InstrumentKeyMappings.PITCH_UP_MODIFIER.get().matches(pKeyCode, pScanCode)) { initPitch(this::setPitch); pitchChanged = false; return true; } - if (pitchChanged && KeyMappings.PITCH_DOWN_MODIFIER.get().matches(pKeyCode, pScanCode)) { + if (pitchChanged && InstrumentKeyMappings.PITCH_DOWN_MODIFIER.get().matches(pKeyCode, pScanCode)) { initPitch(this::setPitch); pitchChanged = false; return true; diff --git a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/notegrid/AbstractGridInstrumentScreen.java b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/notegrid/AbstractGridInstrumentScreen.java index a6f56034..1468e078 100644 --- a/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/notegrid/AbstractGridInstrumentScreen.java +++ b/src/main/java/com/cstav/genshinstrument/client/gui/screens/instrument/partial/notegrid/AbstractGridInstrumentScreen.java @@ -10,7 +10,7 @@ import com.cstav.genshinstrument.client.gui.screens.instrument.partial.note.NoteButton; import com.cstav.genshinstrument.client.gui.screens.options.instrument.AbstractInstrumentOptionsScreen; import com.cstav.genshinstrument.client.gui.screens.options.instrument.GridInstrumentOptionsScreen; -import com.cstav.genshinstrument.client.keyMaps.KeyMappings; +import com.cstav.genshinstrument.client.keyMaps.InstrumentKeyMappings; import com.cstav.genshinstrument.networking.buttonidentifier.NoteButtonIdentifier; import com.cstav.genshinstrument.networking.buttonidentifier.NoteGridButtonIdentifier; import com.cstav.genshinstrument.sound.NoteSound; @@ -118,7 +118,7 @@ public NoteGrid initNoteGrid() { public final NoteGrid noteGrid = initNoteGrid(); - private final Map noteMap = noteGrid.genKeyboardMap(KeyMappings.GRID_INSTRUMENT_MAPPINGS); + private final Map noteMap = noteGrid.genKeyboardMap(InstrumentKeyMappings.GRID_INSTRUMENT_MAPPINGS); @Override public Map noteMap() { return noteMap; diff --git a/src/main/java/com/cstav/genshinstrument/client/keyMaps/KeyMappings.java b/src/main/java/com/cstav/genshinstrument/client/keyMaps/InstrumentKeyMappings.java similarity index 99% rename from src/main/java/com/cstav/genshinstrument/client/keyMaps/KeyMappings.java rename to src/main/java/com/cstav/genshinstrument/client/keyMaps/InstrumentKeyMappings.java index 99d982eb..be926f85 100644 --- a/src/main/java/com/cstav/genshinstrument/client/keyMaps/KeyMappings.java +++ b/src/main/java/com/cstav/genshinstrument/client/keyMaps/InstrumentKeyMappings.java @@ -22,7 +22,7 @@ @OnlyIn(Dist.CLIENT) @EventBusSubscriber(bus = Bus.MOD, modid = GInstrumentMod.MODID, value = Dist.CLIENT) -public class KeyMappings { +public class InstrumentKeyMappings { public static final String CATEGORY = GInstrumentMod.MODID+".keymaps"; public static final IKeyConflictContext INSTRUMENT_KEY_CONFLICT_CONTEXT = new IKeyConflictContext() {