diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-10 23:17:59 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-10-10 23:17:59 +1000 |
commit | b1aa7032fe9e6bfedccf1bb08952c68100002489 (patch) | |
tree | 25b82e668a9ed1825fa3d021d0a80959ccc31639 /src/Java/gtPlusPlus/core/interfaces | |
parent | 26e10439a576e08bc3261a6d7c6c00c6cad7b761 (diff) | |
download | GT5-Unofficial-b1aa7032fe9e6bfedccf1bb08952c68100002489.tar.gz GT5-Unofficial-b1aa7032fe9e6bfedccf1bb08952c68100002489.tar.bz2 GT5-Unofficial-b1aa7032fe9e6bfedccf1bb08952c68100002489.zip |
+ Added Blueprints - These are capable of storing a crafting recipe in it, to be used with the workbench.
% More Internal work on the Workbench and it's handling of shit.
+ Added an interface for blueprints and other shit to utilize.
Diffstat (limited to 'src/Java/gtPlusPlus/core/interfaces')
-rw-r--r-- | src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java b/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java new file mode 100644 index 0000000000..f3f4e40b66 --- /dev/null +++ b/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java @@ -0,0 +1,48 @@ +package gtPlusPlus.core.interfaces; + +import net.minecraft.inventory.IInventory; +import net.minecraft.item.ItemStack; + +public interface IItemBlueprint { + + /** + * The inventory size for the blueprint~ + */ + public int INV_SIZE = 9; + + /** + * Meta Compatible function to allow meta items to be blueprints + * @param stack yourMetaItem + * @return true if it is a Blueprint + */ + public boolean isBlueprint(ItemStack stack); + + /** + * Sets the blueprint for this itemstack. + * @param stack yourMetaItem + * @return true if blueprint is set successfully + */ + public boolean setBlueprint(ItemStack stack, IInventory craftingTable, ItemStack output); + + /** + * Sets the name of the recipe/blueprint + * @param String Blueprint Name + * @return N/A + */ + public void setBlueprintName(String name); + + /** + * Does this itemstack hold a blueprint? + * @param stack yourMetaItem + * @return true if is holding a Blueprint + */ + public boolean hasBlueprint(ItemStack stack); + + /** + * Gets the recipe held by the item + * @param stack yourMetaItem + * @return the blueprints contents + */ + public ItemStack[] getBlueprint(ItemStack stack); + +} |