T - The tile type.public class SlotWorkingRemoveOnly<T extends WorkingTileEntity<?,?>> extends SlotWorking<T>
tile| Constructor and Description |
|---|
SlotWorkingRemoveOnly(int index,
int x,
int y,
T tile,
boolean shouldHardReset)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isItemValid(net.minecraft.item.ItemStack itemStack) |
void |
onPickupFromSlot(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemStack) |
void |
onSlotChanged() |
canTakeStack, decrStackSize, func_111238_b, getBackgroundIconIndex, getBackgroundIconTexture, getHasStack, getSlotIndex, getSlotStackLimit, getStack, isSlotInInventory, onCrafting, onCrafting, onSlotChange, putStack, setBackgroundIcon, setBackgroundIconTexturepublic SlotWorkingRemoveOnly(int index,
int x,
int y,
T tile,
boolean shouldHardReset)
index - The index of this slot.x - X coordinate.y - Y coordinate.tile - The tile this slot is in.shouldHardReset - If the tick and required ticks for the tile should be reset.public boolean isItemValid(net.minecraft.item.ItemStack itemStack)
isItemValid in class SlotWorking<T extends WorkingTileEntity<?,?>>public void onPickupFromSlot(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack itemStack)
onPickupFromSlot in class SlotWorking<T extends WorkingTileEntity<?,?>>public void onSlotChanged()
onSlotChanged in class SlotWorking<T extends WorkingTileEntity<?,?>>