diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-08-15 07:55:35 +0100 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2019-08-15 07:55:35 +0100 |
commit | e7ef217244340fe6984b79815d56d9d5b72582fc (patch) | |
tree | 5ba69d85189d2c6d876c95154b7524cee2859e87 /src/Java/gtPlusPlus/core/handler/Recipes | |
parent | 9f9b49884e9496023cd9cd66b0dfe4301f8231bf (diff) | |
download | GT5-Unofficial-e7ef217244340fe6984b79815d56d9d5b72582fc.tar.gz GT5-Unofficial-e7ef217244340fe6984b79815d56d9d5b72582fc.tar.bz2 GT5-Unofficial-e7ef217244340fe6984b79815d56d9d5b72582fc.zip |
+ Attempted to add a buggy NEI page for decayable dusts.
+ Added a way to disable ALL GT++ logging in the ASM config file.
+ Added recipes for Ztones covers.
% Adjusted recipes for Tiered machine covers.
% Updated GT++ debug command to toggle logging if desired. (Useful in-game).
$ Fixed bug where smart covers would lose their state.
Diffstat (limited to 'src/Java/gtPlusPlus/core/handler/Recipes')
-rw-r--r-- | src/Java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java b/src/Java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java new file mode 100644 index 0000000000..360b0440a2 --- /dev/null +++ b/src/Java/gtPlusPlus/core/handler/Recipes/DecayableRecipe.java @@ -0,0 +1,39 @@ +package gtPlusPlus.core.handler.Recipes; + +import gregtech.api.util.GT_Utility; +import gtPlusPlus.api.objects.data.AutoMap; +import gtPlusPlus.core.util.minecraft.ItemUtils; +import net.minecraft.item.ItemStack; + +public class DecayableRecipe { + + public static final AutoMap<DecayableRecipe> mRecipes = new AutoMap<DecayableRecipe>(); + + + public final int mTime; + public final ItemStack mInput; + public final ItemStack mOutput; + + public DecayableRecipe(int time, ItemStack input, ItemStack output) { + mTime = time; + mInput = input; + mOutput = output; + mRecipes.put(this); + } + + @Override + public boolean equals(Object o) { + if (o instanceof DecayableRecipe) { + DecayableRecipe i = (DecayableRecipe) o; + if (i.mTime == this.mTime && GT_Utility.areStacksEqual(mInput, i.mInput) && GT_Utility.areStacksEqual(mOutput, i.mOutput)) { + return true; + } + } + return false; + } + + public boolean isValid() { + return (mTime > 0 && ItemUtils.checkForInvalidItems(mInput) && ItemUtils.checkForInvalidItems(mOutput)); + } + +} |