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, setBackgroundName
public 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.Slot
public boolean isItemValid(net.minecraft.item.ItemStack stack)
isItemValid
in class net.minecraft.inventory.Slot
public net.minecraft.item.ItemStack getStack()
getStack
in class net.minecraft.inventory.Slot
public void putStack(net.minecraft.item.ItemStack stack)
putStack
in class net.minecraft.inventory.Slot
public boolean canTakeStack(net.minecraft.entity.player.EntityPlayer player)
canTakeStack
in class net.minecraft.inventory.Slot
public net.minecraft.item.ItemStack decrStackSize(int amount)
decrStackSize
in class net.minecraft.inventory.Slot
public int getItemStackLimit(net.minecraft.item.ItemStack stack)
getItemStackLimit
in class net.minecraft.inventory.Slot
public int getSlotStackLimit()
getSlotStackLimit
in class net.minecraft.inventory.Slot