public class SlotDisplay
extends net.minecraft.inventory.Slot
| Constructor and Description |
|---|
SlotDisplay(java.util.function.IntFunction<net.minecraft.item.ItemStack> getter,
int index,
int xPosition,
int yPosition) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTakeStack(net.minecraft.entity.player.EntityPlayer player) |
net.minecraft.item.ItemStack |
decrStackSize(int amount) |
int |
getItemStackLimit(net.minecraft.item.ItemStack stack) |
int |
getSlotStackLimit() |
net.minecraft.item.ItemStack |
getStack() |
boolean |
isItemValid(net.minecraft.item.ItemStack stack) |
net.minecraft.item.ItemStack |
onTake(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack) |
void |
putStack(net.minecraft.item.ItemStack stack) |
getBackgroundLocation, getBackgroundMap, getBackgroundSprite, getHasStack, getSlotIndex, getSlotTexture, isEnabled, isHere, isSameInventory, onCrafting, onCrafting, onSlotChange, onSlotChanged, onSwapCraft, setBackgroundLocation, setBackgroundNamepublic SlotDisplay(java.util.function.IntFunction<net.minecraft.item.ItemStack> getter,
int index,
int xPosition,
int yPosition)
public net.minecraft.item.ItemStack onTake(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.item.ItemStack stack)
onTake in class net.minecraft.inventory.Slotpublic boolean isItemValid(net.minecraft.item.ItemStack stack)
isItemValid in class net.minecraft.inventory.Slotpublic net.minecraft.item.ItemStack getStack()
getStack in class net.minecraft.inventory.Slotpublic void putStack(net.minecraft.item.ItemStack stack)
putStack in class net.minecraft.inventory.Slotpublic boolean canTakeStack(net.minecraft.entity.player.EntityPlayer player)
canTakeStack in class net.minecraft.inventory.Slotpublic net.minecraft.item.ItemStack decrStackSize(int amount)
decrStackSize in class net.minecraft.inventory.Slotpublic int getItemStackLimit(net.minecraft.item.ItemStack stack)
getItemStackLimit in class net.minecraft.inventory.Slotpublic int getSlotStackLimit()
getSlotStackLimit in class net.minecraft.inventory.Slot