public static class GuiContainerCreative.ContainerCreative extends Container
Modifier and Type | Field and Description |
---|---|
NonNullList<ItemStack> |
itemList
the list of items in this container
|
inventoryItemStacks, inventorySlots, listeners, windowId
Constructor and Description |
---|
ContainerCreative(EntityPlayer player) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDragIntoSlot(Slot slotIn)
Returns true if the player can "drag-spilt" items into this slot,.
|
boolean |
canInteractWith(EntityPlayer playerIn)
Determines whether supplied player can use this container
|
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn)
Called to determine if the current slot is valid for the stack merging (double-click) code.
|
boolean |
canScroll() |
void |
scrollTo(float pos)
Updates the gui slots ItemStack's based on scroll position.
|
ItemStack |
transferStackInSlot(EntityPlayer playerIn,
int index)
Handle when the stack in slot
index is shift-clicked. |
addListener, addSlotToContainer, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getSlotFromInventory, isValidDragMode, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotChangedCraftingGrid, slotClick, updateProgressBar
public NonNullList<ItemStack> itemList
public ContainerCreative(EntityPlayer player)
public boolean canInteractWith(EntityPlayer playerIn)
canInteractWith
in class Container
public void scrollTo(float pos)
public boolean canScroll()
public ItemStack transferStackInSlot(EntityPlayer playerIn, int index)
index
is shift-clicked. Normally this moves the stack between the
player inventory and the other inventory(s).transferStackInSlot
in class Container
public boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot
in class Container
public boolean canDragIntoSlot(Slot slotIn)
canDragIntoSlot
in class Container