1.0.19 II

This commit is contained in:
HbmMods 2016-05-28 00:22:34 +02:00
parent 04d01d787b
commit 428417c06f
5 changed files with 27 additions and 17 deletions

View File

@ -75,7 +75,7 @@ public class AlloyFurnaceRecipeHandler extends TemplateRecipeHandler {
}
public void loadCraftingRecipes(String outputId, Object... results) {
if ((outputId.equals("alloysmelting")) && (getClass() == AlloyFurnaceRecipeHandler.class)) {
if ((outputId.equals("alloysmelting")) && getClass() == AlloyFurnaceRecipeHandler.class) {
Map<Object[], Object> recipes = MachineRecipes.instance().getAlloyRecipes();
for (Map.Entry<Object[], Object> recipe : recipes.entrySet()) {
this.arecipes.add(new SmeltingSet((ItemStack)recipe.getKey()[0], (ItemStack)recipe.getKey()[1], (ItemStack)recipe.getValue()));
@ -94,7 +94,7 @@ public class AlloyFurnaceRecipeHandler extends TemplateRecipeHandler {
}
public void loadUsageRecipes(String inputId, Object... ingredients) {
if ((inputId.equals("alloysmelting"))&& (getClass() == AlloyFurnaceRecipeHandler.class)) {
if ((inputId.equals("alloysmelting")) && getClass() == AlloyFurnaceRecipeHandler.class) {
loadCraftingRecipes("alloysmelting", new Object[0]);
} else {
super.loadUsageRecipes(inputId, ingredients);

View File

@ -14,6 +14,7 @@ import com.hbm.handler.AlloyFurnaceRecipeHandler.SmeltingSet;
import codechicken.nei.NEIServerUtils;
import codechicken.nei.PositionedStack;
import codechicken.nei.recipe.FurnaceRecipeHandler;
import codechicken.nei.recipe.TemplateRecipeHandler;
import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect;
import net.minecraft.client.gui.inventory.GuiContainer;
@ -95,7 +96,7 @@ public class CentrifugeRecipeHandler extends TemplateRecipeHandler {
}
public void loadCraftingRecipes(String outputId, Object... results) {
if ((outputId.equals("centrifugeprocessing")) && (getClass() == CentrifugeRecipeHandler.class)) {
if ((outputId.equals("centrifugeprocessing")) && getClass() == CentrifugeRecipeHandler.class) {
Map<Object, Object[]> recipes = MachineRecipes.instance().getCentrifugeRecipes();
for (Map.Entry<Object, Object[]> recipe : recipes.entrySet()) {
this.arecipes.add(new SmeltingSet((ItemStack)recipe.getKey(), (ItemStack)recipe.getValue()[0], (ItemStack)recipe.getValue()[1], (ItemStack)recipe.getValue()[2], (ItemStack)recipe.getValue()[3]));
@ -114,7 +115,7 @@ public class CentrifugeRecipeHandler extends TemplateRecipeHandler {
}
public void loadUsageRecipes(String inputId, Object... ingredients) {
if ((inputId.equals("centrifugeprocessing"))&& (getClass() == CentrifugeRecipeHandler.class)) {
if ((inputId.equals("centrifugeprocessing")) && getClass() == CentrifugeRecipeHandler.class) {
loadCraftingRecipes("centrifugeprocessing", new Object[0]);
} else {
super.loadUsageRecipes(inputId, ingredients);

View File

@ -16,6 +16,7 @@ import codechicken.nei.NEIServerUtils;
import codechicken.nei.PositionedStack;
import codechicken.nei.api.IOverlayHandler;
import codechicken.nei.api.IRecipeOverlayRenderer;
import codechicken.nei.recipe.FurnaceRecipeHandler;
import codechicken.nei.recipe.GuiRecipe;
import codechicken.nei.recipe.ICraftingHandler;
import codechicken.nei.recipe.TemplateRecipeHandler;
@ -73,7 +74,7 @@ public class ReactorRecipeHandler extends TemplateRecipeHandler {
}
public void loadCraftingRecipes(String outputId, Object... results) {
if ((outputId.equals("breeding")) && (getClass() == ReactorRecipeHandler.class)) {
if ((outputId.equals("breeding")) && getClass() == ReactorRecipeHandler.class) {
Map<Object, Object> recipes = MachineRecipes.instance().getReactorRecipes();
for (Map.Entry<Object, Object> recipe : recipes.entrySet()) {
this.arecipes.add(new SmeltingSet((ItemStack)recipe.getKey(), (ItemStack)recipe.getValue()));
@ -92,7 +93,7 @@ public class ReactorRecipeHandler extends TemplateRecipeHandler {
}
public void loadUsageRecipes(String inputId, Object... ingredients) {
if ((inputId.equals("breeding"))&& (getClass() == ReactorRecipeHandler.class)) {
if ((inputId.equals("breeding")) && getClass() == ReactorRecipeHandler.class) {
loadCraftingRecipes("breeding", new Object[0]);
} else {
super.loadUsageRecipes(inputId, ingredients);

View File

@ -3,7 +3,7 @@ package com.hbm.lib;
public class RefStrings {
public static final String MODID = "hbm";
public static final String NAME = "Hbm's Nuclear Tech Mod";
public static final String VERSION = "1.0.18";
public static final String VERSION = "1.0.19";
public static final String CLIENTSIDE = "com.hbm.main.ClientProxy";
public static final String SERVERSIDE = "com.hbm.main.ServerProxy";
}

View File

@ -1,15 +1,23 @@
package com.hbm.main;
import com.hbm.lib.RefStrings;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.PlayerEvent;
import net.minecraft.client.Minecraft;
import net.minecraft.util.ChatComponentText;
public class ModEventHandler
{
// Achievements
/*@SubscribeEvent
public void whenTitaniumSmeleted(PlayerEvent.ItemSmeltedEvent e)
{
if (e.smelting.getItem().equals(ModItems.ingot_titanium))
{
e.player.addStat(MainRegistry.achievementGetTitanium, 1);
}
}*/
public static boolean showMessage = true;
@SubscribeEvent
public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) {
if(showMessage)
{
event.player.addChatMessage(new ChatComponentText("Loaded world with Hbm's Nuclear Tech Mod " + RefStrings.VERSION + " for Minecraft 1.7.10!"));
}
showMessage = !showMessage;
}
}