From dc3df3edd5843bde0c1335d6a8e460b2c832aa48 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Sat, 17 Jun 2017 08:12:18 +0300 Subject: full project files --- javadoc/net/minecraft/inventory/Slot.html | 631 ++++++++++++++++++++++++++++++ 1 file changed, 631 insertions(+) create mode 100644 javadoc/net/minecraft/inventory/Slot.html (limited to 'javadoc/net/minecraft/inventory/Slot.html') diff --git a/javadoc/net/minecraft/inventory/Slot.html b/javadoc/net/minecraft/inventory/Slot.html new file mode 100644 index 0000000..959be3a --- /dev/null +++ b/javadoc/net/minecraft/inventory/Slot.html @@ -0,0 +1,631 @@ + + + + + +Slot (Forge API) + + + + + + + +
+ + + + + +
+ + + +
+
net.minecraft.inventory
+

Class Slot

+
+
+ +
+ +
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Field Detail

      + + + +
        +
      • +

        inventory

        +
        public final IInventory inventory
        +
      • +
      + + + +
        +
      • +

        slotNumber

        +
        public int slotNumber
        +
      • +
      + + + +
        +
      • +

        xDisplayPosition

        +
        public int xDisplayPosition
        +
      • +
      + + + +
        +
      • +

        yDisplayPosition

        +
        public int yDisplayPosition
        +
      • +
      + + + +
        +
      • +

        backgroundIcon

        +
        protected IIcon backgroundIcon
        +
        Position within background texture file, normally -1 which causes no background to be drawn.
        +
      • +
      + + + +
        +
      • +

        texture

        +
        protected ResourceLocation texture
        +
        Background texture file assigned to this slot, if any. Vanilla "/gui/items.png" is used if this is null.
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Slot

        +
        public Slot(IInventory p_i1824_1_,
        +    int p_i1824_2_,
        +    int p_i1824_3_,
        +    int p_i1824_4_)
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        onSlotChange

        +
        public void onSlotChange(ItemStack p_75220_1_,
        +                ItemStack p_75220_2_)
        +
      • +
      + + + +
        +
      • +

        onCrafting

        +
        protected void onCrafting(ItemStack p_75210_1_,
        +              int p_75210_2_)
        +
      • +
      + + + +
        +
      • +

        onCrafting

        +
        protected void onCrafting(ItemStack p_75208_1_)
        +
      • +
      + + + +
        +
      • +

        onPickupFromSlot

        +
        public void onPickupFromSlot(EntityPlayer p_82870_1_,
        +                    ItemStack p_82870_2_)
        +
      • +
      + + + +
        +
      • +

        isItemValid

        +
        public boolean isItemValid(ItemStack p_75214_1_)
        +
      • +
      + + + +
        +
      • +

        getStack

        +
        public ItemStack getStack()
        +
      • +
      + + + +
        +
      • +

        getHasStack

        +
        public boolean getHasStack()
        +
      • +
      + + + +
        +
      • +

        putStack

        +
        public void putStack(ItemStack p_75215_1_)
        +
      • +
      + + + +
        +
      • +

        onSlotChanged

        +
        public void onSlotChanged()
        +
      • +
      + + + +
        +
      • +

        getSlotStackLimit

        +
        public int getSlotStackLimit()
        +
      • +
      + + + +
        +
      • +

        decrStackSize

        +
        public ItemStack decrStackSize(int p_75209_1_)
        +
      • +
      + + + +
        +
      • +

        isSlotInInventory

        +
        public boolean isSlotInInventory(IInventory p_75217_1_,
        +                        int p_75217_2_)
        +
      • +
      + + + +
        +
      • +

        canTakeStack

        +
        public boolean canTakeStack(EntityPlayer p_82869_1_)
        +
      • +
      + + + +
        +
      • +

        getBackgroundIconIndex

        +
        public IIcon getBackgroundIconIndex()
        +
      • +
      + + + +
        +
      • +

        func_111238_b

        +
        public boolean func_111238_b()
        +
      • +
      + + + +
        +
      • +

        getBackgroundIconTexture

        +
        public ResourceLocation getBackgroundIconTexture()
        +
        Gets the path of the texture file to use for the background image of this slot when drawing the GUI.
        +
        Returns:
        String: The texture file that will be used in GuiContainer.drawSlotInventory for the slot background.
        +
      • +
      + + + +
        +
      • +

        setBackgroundIcon

        +
        public void setBackgroundIcon(IIcon icon)
        +
        Sets which icon index to use as the background image of the slot when it's empty.
        +
        Parameters:
        icon - The icon to use, null for none
        +
      • +
      + + + +
        +
      • +

        setBackgroundIconTexture

        +
        public void setBackgroundIconTexture(ResourceLocation texture)
        +
        Sets the texture file to use for the background image of the slot when it's empty.
        +
        Parameters:
        textureFilename - String: Path of texture file to use, or null to use "/gui/items.png"
        +
      • +
      + + + +
        +
      • +

        getSlotIndex

        +
        public int getSlotIndex()
        +
        Retrieves the index in the inventory for this slot, this value should typically not + be used, but can be useful for some occasions.
        +
        Returns:
        Index in associated inventory for this slot.
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + + + -- cgit v1.2.3