From 0669f5eb9d5029a8b94ec552171b0837605f7747 Mon Sep 17 00:00:00 2001 From: draknyte1 Date: Fri, 4 Nov 2016 15:23:26 +1000 Subject: $ Cleaned up the entire project. > Much neat, very nices. --- .../gtPlusPlus/core/interfaces/IGuiManager.java | 8 +-- .../core/interfaces/IGuiManagerMiscUtils.java | 3 +- .../gtPlusPlus/core/interfaces/IItemBlueprint.java | 74 ++++++++++++---------- 3 files changed, 48 insertions(+), 37 deletions(-) (limited to 'src/Java/gtPlusPlus/core/interfaces') diff --git a/src/Java/gtPlusPlus/core/interfaces/IGuiManager.java b/src/Java/gtPlusPlus/core/interfaces/IGuiManager.java index 1d0ad9ed87..ad2bfcb10a 100644 --- a/src/Java/gtPlusPlus/core/interfaces/IGuiManager.java +++ b/src/Java/gtPlusPlus/core/interfaces/IGuiManager.java @@ -4,13 +4,13 @@ import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.ChunkCoordinates; import net.minecraft.world.World; -public abstract interface IGuiManager extends IGuiManagerMiscUtils{ +public abstract interface IGuiManager extends IGuiManagerMiscUtils { - public abstract ChunkCoordinates getCoordinates(); + public abstract Object getContainer(EntityPlayer paramEntityPlayer, int paramInt); - public abstract World getWorld(); + public abstract ChunkCoordinates getCoordinates(); public abstract Object getGui(EntityPlayer paramEntityPlayer, int paramInt); - public abstract Object getContainer(EntityPlayer paramEntityPlayer, int paramInt); + public abstract World getWorld(); } diff --git a/src/Java/gtPlusPlus/core/interfaces/IGuiManagerMiscUtils.java b/src/Java/gtPlusPlus/core/interfaces/IGuiManagerMiscUtils.java index cf46c67a54..9fb2e74cb1 100644 --- a/src/Java/gtPlusPlus/core/interfaces/IGuiManagerMiscUtils.java +++ b/src/Java/gtPlusPlus/core/interfaces/IGuiManagerMiscUtils.java @@ -1,3 +1,4 @@ package gtPlusPlus.core.interfaces; -public abstract interface IGuiManagerMiscUtils {} \ No newline at end of file +public abstract interface IGuiManagerMiscUtils { +} \ No newline at end of file diff --git a/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java b/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java index 90126b1e82..ebdf4c2e57 100644 --- a/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java +++ b/src/Java/gtPlusPlus/core/interfaces/IItemBlueprint.java @@ -4,45 +4,55 @@ import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; public interface IItemBlueprint { - + /** - * The inventory size for the blueprint~ - */ + * The inventory size for the blueprint~ + */ public int INV_SIZE = 9; - + + /** + * Gets the recipe held by the item + * + * @param stack + * yourMetaItem + * @return the blueprints contents + */ + public ItemStack[] getBlueprint(ItemStack stack); + + /** + * Does this itemstack hold a blueprint? + * + * @param stack + * yourMetaItem + * @return true if is holding a Blueprint + */ + public boolean hasBlueprint(ItemStack stack); + /** - * Meta Compatible function to allow meta items to be blueprints - * @param stack yourMetaItem - * @return true if it is a Blueprint - */ + * 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 - */ + * 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 - */ + * Sets the name of the recipe/blueprint + * + * @param String + * Blueprint Name + * @return N/A + */ public void setBlueprintName(ItemStack stack, 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); } -- cgit