[RELEASE] 1.7.10 BETA1-Release ready. Code cleanup and inspection.

This commit is contained in:
0xSeb
2015-11-25 22:34:30 +01:00
parent 9d3ef44db7
commit dc54ca0a01
12 changed files with 47 additions and 125 deletions
@@ -45,6 +45,7 @@ public class CraftingKeys {
/**
* Current Instance of CraftingKeys.
*/
@SuppressWarnings("WeakerAccess")
@Instance(value = MODID)
public static CraftingKeys instance;
@@ -89,10 +90,12 @@ public class CraftingKeys {
*
* @param event Input Event from FML
*/
@SuppressWarnings("EmptyMethod")
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
}
@SuppressWarnings("UnusedParameters")
@SubscribeEvent
public void onKeyInput(InputEvent.KeyInputEvent event) {
if (KeyBindings.openGuiBinding.isPressed()) {
@@ -122,6 +125,7 @@ public class CraftingKeys {
*
* @param event Some Forge input event
*/
@SuppressWarnings({"EmptyMethod", "UnusedParameters"})
@SubscribeEvent
public void onGuiOpened(GuiOpenEvent event) {
//if (event.gui instanceof GuiMainMenu) {
@@ -134,6 +138,7 @@ public class CraftingKeys {
*
* @param tick This is a tick. What did you think about it?
*/
@SuppressWarnings("UnusedParameters")
@SubscribeEvent
public void onTick(TickEvent.ClientTickEvent tick) {
@@ -184,7 +189,7 @@ public class CraftingKeys {
((GuiEnchantment) currentScreen).inventorySlots);
con.acceptKey();
} else if (currentScreen instanceof GuiRepair){
} else if (currentScreen instanceof GuiRepair) {
ContainerManager con = AnvilManager.getInstance(
((GuiRepair) currentScreen).inventorySlots);
con.acceptKey();