aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/core/interfaces/IItemBlueprint.java
blob: df205891ac0a0e3c0d52b2ec41f91a9139c32782 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package gtPlusPlus.core.interfaces;

import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;

public interface IItemBlueprint {

    /**
     * The inventory size for the blueprint~
     */
    int INV_SIZE = 9;

    /**
     * Meta Compatible function to allow meta items to be blueprints
     *
     * @param stack yourMetaItem
     * @return true if it is a Blueprint
     */
    boolean isBlueprint(ItemStack stack);

    /**
     * Sets the blueprint for this itemstack.
     *
     * @param stack yourMetaItem
     * @return true if blueprint is set successfully
     */
    boolean setBlueprint(ItemStack stack, IInventory craftingTable, ItemStack output);

    /**
     * Sets the name of the recipe/blueprint
     *
     * @param String Blueprint Name
     * @return N/A
     */
    void setBlueprintName(ItemStack stack, String name);

    /**
     * Does this itemstack hold a blueprint?
     *
     * @param stack yourMetaItem
     * @return true if is holding a Blueprint
     */
    boolean hasBlueprint(ItemStack stack);

    /**
     * Gets the recipe held by the item
     *
     * @param stack yourMetaItem
     * @return the blueprints contents
     */
    ItemStack[] getBlueprint(ItemStack stack);
}