Package net.minecraft.src
Class Slot
- java.lang.Object
-
- net.minecraft.src.Slot
-
- Direct Known Subclasses:
SlotCrafting
,SlotFurnace
public class Slot extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description IInventory
inventory
int
slotNumber
int
xDisplayPosition
int
yDisplayPosition
-
Constructor Summary
Constructors Constructor Description Slot(IInventory var1, int var2, int var3, int var4)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemStack
decrStackSize(int var1)
void
func_48433_a(ItemStack var1, ItemStack var2)
protected void
func_48434_c(ItemStack itemstack)
protected void
func_48435_a(ItemStack itemstack, int i)
@net.minecraft.modding.api.Side.Client int
getBackgroundIconIndex()
boolean
getHasStack()
int
getSlotStackLimit()
ItemStack
getStack()
boolean
isHere(IInventory var1, int var2)
boolean
isItemValid(ItemStack var1)
void
onPickupFromSlot(ItemStack var1)
void
onSlotChanged()
void
putStack(ItemStack var1)
-
-
-
Field Detail
-
inventory
public final IInventory inventory
-
slotNumber
public int slotNumber
-
xDisplayPosition
public int xDisplayPosition
-
yDisplayPosition
public int yDisplayPosition
-
-
Constructor Detail
-
Slot
public Slot(IInventory var1, int var2, int var3, int var4)
-
-
Method Detail
-
func_48435_a
protected void func_48435_a(ItemStack itemstack, int i)
-
func_48434_c
protected void func_48434_c(ItemStack itemstack)
-
onPickupFromSlot
public void onPickupFromSlot(ItemStack var1)
-
isItemValid
public boolean isItemValid(ItemStack var1)
-
getStack
public ItemStack getStack()
-
getHasStack
public boolean getHasStack()
-
putStack
public void putStack(ItemStack var1)
-
onSlotChanged
public void onSlotChanged()
-
getSlotStackLimit
public int getSlotStackLimit()
-
getBackgroundIconIndex
@Client public @net.minecraft.modding.api.Side.Client int getBackgroundIconIndex()
-
decrStackSize
public ItemStack decrStackSize(int var1)
-
isHere
public boolean isHere(IInventory var1, int var2)
-
-