diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-04 23:59:02 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-09-04 23:59:02 +1000 |
commit | 6a4ad84be99da0171540548f396ed3b44eab2806 (patch) | |
tree | ee9573a6587ea86a74e9e393f1b05dee4b9c580a /src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base | |
parent | 1d02aed53ddbb672b1ab0e339514c3a4a9651211 (diff) | |
download | GT5-Unofficial-6a4ad84be99da0171540548f396ed3b44eab2806.tar.gz GT5-Unofficial-6a4ad84be99da0171540548f396ed3b44eab2806.tar.bz2 GT5-Unofficial-6a4ad84be99da0171540548f396ed3b44eab2806.zip |
% Tried moving my recipe map to extend the GT_Recipe.
Diffstat (limited to 'src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base')
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_BasicMachine_Custom_Recipe.java b/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_BasicMachine_Custom_Recipe.java index e051a54fb3..0c501af33a 100644 --- a/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_BasicMachine_Custom_Recipe.java +++ b/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_BasicMachine_Custom_Recipe.java @@ -19,7 +19,7 @@ import gregtech.api.util.GT_Utility; import java.util.Random; -import miscutil.xmod.gregtech.api.util.GregtechRecipe.Gregtech_Recipe_Map; +import miscutil.xmod.gregtech.api.util.GregtechRecipe_OLD.Gregtech_Recipe_Map; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; diff --git a/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_CustomRecipe_BasicMachine.java b/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_CustomRecipe_BasicMachine.java index a3042a4144..c2852c3c1a 100644 --- a/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_CustomRecipe_BasicMachine.java +++ b/src/Java/miscutil/xmod/gregtech/api/metatileentity/implementations/base/GT_MTE_CustomRecipe_BasicMachine.java @@ -16,8 +16,8 @@ import gregtech.api.util.GT_Utility; import java.util.Arrays; -import miscutil.xmod.gregtech.api.util.GregtechRecipe; -import miscutil.xmod.gregtech.api.util.GregtechRecipe.Gregtech_Recipe_Map; +import miscutil.xmod.gregtech.api.util.GregtechRecipe_OLD; +import miscutil.xmod.gregtech.api.util.GregtechRecipe_OLD.Gregtech_Recipe_Map; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack; @@ -52,7 +52,7 @@ public abstract class GT_MTE_CustomRecipe_BasicMachine extends GT_MetaTileEntity /** * Contains the Recipe which has been previously used, or null if there was no previous Recipe, which could have been buffered */ - protected GregtechRecipe mLastRecipe = null; + protected GregtechRecipe_OLD mLastRecipe = null; private FluidStack mFluidOut; /** @@ -514,7 +514,7 @@ public abstract class GT_MTE_CustomRecipe_BasicMachine extends GT_MetaTileEntity return getBaseMetaTileEntity().decreaseStoredEnergyUnits(aEUt, false); } - protected void calculateOverclockedNess(GregtechRecipe tRecipe) { + protected void calculateOverclockedNess(GregtechRecipe_OLD tRecipe) { calculateOverclockedNess(tRecipe.mEUt, tRecipe.mDuration); } @@ -546,7 +546,7 @@ public abstract class GT_MTE_CustomRecipe_BasicMachine extends GT_MetaTileEntity return rOutputs; } - protected boolean canOutput(GregtechRecipe tRecipe) { + protected boolean canOutput(GregtechRecipe_OLD tRecipe) { return tRecipe != null && (tRecipe.mNeedsEmptyOutput ? isOutputEmpty() && getDrainableStack() == null : canOutput(tRecipe.getFluidOutput(0)) && canOutput(tRecipe.mOutputs)); } @@ -723,7 +723,7 @@ public abstract class GT_MTE_CustomRecipe_BasicMachine extends GT_MetaTileEntity public int checkRecipe() { Gregtech_Recipe_Map tMap = getRecipeList(); if (tMap == null) return DID_NOT_FIND_RECIPE; - GregtechRecipe tRecipe = tMap.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), getAllInputs()); + GregtechRecipe_OLD tRecipe = tMap.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, V[mTier], new FluidStack[]{getFillableStack()}, getSpecialSlot(), getAllInputs()); if (tRecipe == null) return DID_NOT_FIND_RECIPE; if (tRecipe.mCanBeBuffered) mLastRecipe = tRecipe; if (!canOutput(tRecipe)) { |