-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
83 additions
and
37 deletions.
There are no files selected for viewing
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
7 changes: 5 additions & 2 deletions
7
src/main/java/com/quasar/voxylenhanced/VoxylInputHandler.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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.quasar.voxylenhanced; | ||
|
||
import net.minecraft.client.settings.KeyBinding; | ||
import net.minecraftforge.common.MinecraftForge; | ||
import net.minecraftforge.fml.client.registry.ClientRegistry; | ||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; | ||
import net.minecraftforge.fml.common.gameevent.TickEvent; | ||
import org.lwjgl.input.Keyboard; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class VoxylKeybinds { | ||
public static ArrayList<KeyBinding> keyBindings; | ||
|
||
public static void register() { | ||
keyBindings = new ArrayList<>(); | ||
|
||
keyBindings.add(new KeyBinding( | ||
"voxylenhanced.gotohub", | ||
Keyboard.KEY_NONE, | ||
"voxylenhanced.vekeybinds" | ||
)); // 0, gotohub | ||
|
||
keyBindings.add(new KeyBinding( | ||
"voxylenhanced.obstaclesautorequeue", | ||
Keyboard.KEY_NONE, | ||
"voxylenhanced.vekeybinds" | ||
)); // 1, obstaclesautorequeue | ||
|
||
for (KeyBinding keyBinding : keyBindings) { | ||
ClientRegistry.registerKeyBinding(keyBinding); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/main/java/com/quasar/voxylenhanced/misc/VoxylMisc.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.quasar.voxylenhanced.misc; | ||
|
||
import net.minecraft.client.Minecraft; | ||
|
||
public class VoxylMisc { | ||
public static void goToHub() { | ||
if (Minecraft.getMinecraft() == null) { | ||
return; | ||
} | ||
if (Minecraft.getMinecraft().thePlayer == null) { | ||
return; | ||
} | ||
Minecraft.getMinecraft().thePlayer.sendChatMessage("/hub"); | ||
} | ||
} |
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
23 changes: 0 additions & 23 deletions
23
src/main/java/com/quasar/voxylenhanced/obstacles/VoxylObstaclesKeybindList.java
This file was deleted.
Oops, something went wrong.
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,2 +1,3 @@ | ||
KEY.voxylenhanced.obstaclesautorequeue=Obstacles Auto RQ | ||
KEY.voxylenhanced.vekeybinds=Voxyl Enhanced | ||
KEY.voxylenhanced.gotohub=Go to Hub | ||
KEY.voxylenhanced.vekeybinds=Voxyl Enhanced |