forked from maruohon/minihud
-
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
36 changed files
with
2,365 additions
and
1,157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
# Thu Jan 14 08:33:00 EET 2016 | ||
group = fi.dy.masa | ||
mod_id = minihud | ||
mod_version = 0.12.0 | ||
mod_name = MiniHUD | ||
mod_version = 0.12.0-dev | ||
author = masa | ||
|
||
# Minecraft, Forge and MCP mappings versions | ||
minecraft_version_out = 1.12.0 | ||
minecraft_version = 1.12 | ||
forge_version = 14.21.1.2404 | ||
mappings_version = snapshot_20170708 | ||
|
||
# JAR signing related stuff | ||
#keyStore = "C:\Users\masa\Desktop\minecraft_modding\keystore_masas_mods.jks" | ||
keyStore = "../../../keystore_masas_mods.jks" | ||
alias = signMinecraftModFiles | ||
storePass = masaFooBar | ||
keyPass = masaFooBar | ||
mappings_version = snapshot_20170609 |
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,73 @@ | ||
package fi.dy.masa.minihud; | ||
|
||
import java.io.File; | ||
import org.apache.logging.log4j.LogManager; | ||
import org.apache.logging.log4j.Logger; | ||
import org.lwjgl.input.Keyboard; | ||
import com.mojang.realmsclient.dto.RealmsServer; | ||
import com.mumfrey.liteloader.Configurable; | ||
import com.mumfrey.liteloader.InitCompleteListener; | ||
import com.mumfrey.liteloader.JoinGameListener; | ||
import com.mumfrey.liteloader.LiteMod; | ||
import com.mumfrey.liteloader.core.LiteLoader; | ||
import com.mumfrey.liteloader.modconfig.ConfigPanel; | ||
import fi.dy.masa.minihud.config.Configs; | ||
import fi.dy.masa.minihud.config.gui.MiniHudConfigPanel; | ||
import fi.dy.masa.minihud.event.RenderEventHandler; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.client.multiplayer.ServerData; | ||
import net.minecraft.client.settings.KeyBinding; | ||
import net.minecraft.network.INetHandler; | ||
import net.minecraft.network.play.server.SPacketJoinGame; | ||
|
||
public class LiteModMiniHud implements LiteMod, Configurable, InitCompleteListener, JoinGameListener | ||
{ | ||
public static final KeyBinding KEY_TOGGLE_MODE = new KeyBinding("minihud.key.togglemode", Keyboard.KEY_H, "category.minihud"); | ||
public static final Logger logger = LogManager.getLogger(Reference.MOD_ID); | ||
|
||
public LiteModMiniHud() | ||
{ | ||
} | ||
|
||
@Override | ||
public String getName() | ||
{ | ||
return Reference.MOD_NAME; | ||
} | ||
|
||
@Override | ||
public String getVersion() | ||
{ | ||
return Reference.MOD_VERSION; | ||
} | ||
|
||
@Override | ||
public Class<? extends ConfigPanel> getConfigPanelClass() | ||
{ | ||
return MiniHudConfigPanel.class; | ||
} | ||
|
||
@Override | ||
public void init(File configPath) | ||
{ | ||
Configs.load(); | ||
RenderEventHandler.getInstance().setEnabled(Configs.Generic.ENABLE_BY_DEFAULT.getBooleanValue()); | ||
} | ||
|
||
@Override | ||
public void upgradeSettings(String version, File configPath, File oldConfigPath) | ||
{ | ||
} | ||
|
||
@Override | ||
public void onInitCompleted(Minecraft minecraft, LiteLoader loader) | ||
{ | ||
LiteLoader.getInput().registerKeyBinding(KEY_TOGGLE_MODE); | ||
} | ||
|
||
@Override | ||
public void onJoinGame(INetHandler netHandler, SPacketJoinGame joinGamePacket, ServerData serverData, RealmsServer realmsServer) | ||
{ | ||
RenderEventHandler.getInstance().onWorldLoad(); | ||
} | ||
} |
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,15 +1,8 @@ | ||
package fi.dy.masa.minihud; | ||
|
||
import org.lwjgl.input.Keyboard; | ||
|
||
public class Reference | ||
{ | ||
public static final String MOD_ID = "minihud"; | ||
public static final String MOD_NAME = "Mini HUD"; | ||
public static final String MOD_VERSION = "@MOD_VERSION@"; | ||
public static final String FINGERPRINT = "2b03e1423915a189b8094816baa18f239d576dff"; | ||
|
||
public static final String KEYBIND_CATEGORY_MINIHUD = "category." + Reference.MOD_ID; | ||
public static final String KEYBIND_NAME_TOGGLE_MODE = Reference.MOD_ID + ".key.togglemode"; | ||
public static final int DEFAULT_KEYBIND_TOGGLE_MODE = Keyboard.KEY_H; | ||
} |
Oops, something went wrong.