public class SlotArmor
extends net.minecraft.inventory.Slot
| Constructor and Description |
|---|
SlotArmor(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y,
net.minecraft.entity.player.EntityPlayer player,
int armorIndex)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.IIcon |
getBackgroundIconIndex() |
int |
getSlotStackLimit() |
boolean |
isItemValid(net.minecraft.item.ItemStack itemStack) |
canTakeStack, decrStackSize, func_111238_b, getBackgroundIconTexture, getHasStack, getSlotIndex, getStack, isSlotInInventory, onCrafting, onCrafting, onPickupFromSlot, onSlotChange, onSlotChanged, putStack, setBackgroundIcon, setBackgroundIconTexturepublic SlotArmor(net.minecraft.inventory.IInventory inventory,
int index,
int x,
int y,
net.minecraft.entity.player.EntityPlayer player,
int armorIndex)
inventory - The inventory this slot will be in.index - The index of this slot.x - X coordinate.y - Y coordinate.player - The player entity.armorIndex - The index of the armor slot.public int getSlotStackLimit()
getSlotStackLimit in class net.minecraft.inventory.Slotpublic boolean isItemValid(net.minecraft.item.ItemStack itemStack)
isItemValid in class net.minecraft.inventory.Slotpublic net.minecraft.util.IIcon getBackgroundIconIndex()
getBackgroundIconIndex in class net.minecraft.inventory.Slot