T - The tile type.public class SlotWorking<T extends TileWorking<T,?>>
extends net.minecraft.inventory.container.Slot
| Modifier and Type | Field and Description |
|---|---|
protected ContainerTileWorking<T> |
container |
| Constructor and Description |
|---|
SlotWorking(int index,
int x,
int y,
ContainerTileWorking<T> container,
net.minecraft.world.World world) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isItemValid(net.minecraft.item.ItemStack itemStack) |
void |
onSlotChanged() |
net.minecraft.item.ItemStack |
onTake(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack itemStack) |
protected ContainerTileWorking<T extends TileWorking<T,?>> container
public SlotWorking(int index,
int x,
int y,
ContainerTileWorking<T> container,
net.minecraft.world.World world)
public boolean isItemValid(net.minecraft.item.ItemStack itemStack)
isItemValid in class net.minecraft.inventory.container.Slotpublic net.minecraft.item.ItemStack onTake(net.minecraft.entity.player.PlayerEntity player,
net.minecraft.item.ItemStack itemStack)
onTake in class net.minecraft.inventory.container.Slotpublic void onSlotChanged()
onSlotChanged in class net.minecraft.inventory.container.Slot