This repository has been archived by the owner on Jan 21, 2023. It is now read-only.
forked from txnimc/MagnesiumExtras
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
src/main/java/vice/magnesium_extras/keybinds/KeyboardInput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
package vice.magnesium_extras.keybinds; | ||
|
||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.entity.player.ClientPlayerEntity; | ||
//import net.minecraft.client.Minecraft; | ||
//import net.minecraft.client.entity.player.ClientPlayerEntity; | ||
import net.minecraft.client.settings.KeyBinding; | ||
import net.minecraft.client.util.InputMappings; | ||
import net.minecraft.network.play.client.CEntityActionPacket; | ||
import net.minecraft.util.math.vector.Vector3d; | ||
//import net.minecraft.network.play.client.CEntityActionPacket; | ||
//import net.minecraft.util.math.vector.Vector3d; | ||
import net.minecraftforge.api.distmarker.Dist; | ||
import net.minecraftforge.client.event.InputEvent; | ||
//import net.minecraftforge.client.event.InputEvent; | ||
import net.minecraftforge.client.settings.KeyConflictContext; | ||
import net.minecraftforge.client.settings.KeyModifier; | ||
import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
//import net.minecraftforge.eventbus.api.SubscribeEvent; | ||
import net.minecraftforge.fml.common.Mod; | ||
import org.lwjgl.glfw.GLFW; | ||
import vice.magnesium_extras.MagnesiumExtras; | ||
//import vice.magnesium_extras.MagnesiumExtras; | ||
|
||
@Mod.EventBusSubscriber(value = Dist.CLIENT) | ||
public class KeyboardInput | ||
{ | ||
public static final KeyBinding zoomKey = new KeyBinding("key.zoom", | ||
public static final KeyBinding zoomKey = new KeyBinding("mg_extra.key.zoom", | ||
KeyConflictContext.IN_GAME, | ||
KeyModifier.NONE, | ||
InputMappings.Type.KEYSYM, | ||
GLFW.GLFW_KEY_C, | ||
"key.category." + MagnesiumExtras.MODID); | ||
"mg_extra.key.category"); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"pack": { | ||
"description": "Mg-Extra resources", | ||
"description": "Magnesium-Extra resources", | ||
"pack_format": 6 | ||
} | ||
} |