public static class CreativeScreen.CreativeContainer extends Container
| Modifier and Type | Field and Description |
|---|---|
NonNullList<ItemStack> |
itemList |
inventorySlots, windowId| Constructor and Description |
|---|
CreativeContainer(PlayerEntity player) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDragIntoSlot(Slot slotIn) |
boolean |
canInteractWith(PlayerEntity playerIn) |
boolean |
canMergeSlot(ItemStack stack,
Slot slotIn) |
boolean |
canScroll() |
void |
scrollTo(float pos) |
ItemStack |
transferStackInSlot(PlayerEntity playerIn,
int index) |
addListener, addSlot, areItemsAndTagsEqual, assertIntArraySize, assertInventorySize, calcRedstone, calcRedstoneFromInventory, canAddItemToSlot, clearContainer, computeStackSize, detectAndSendChanges, enchantItem, extractDragMode, getCanCraft, getDragEvent, getInventory, getNextTransactionID, getQuickcraftMask, getSlot, getType, isValidDragMode, isWithinUsableDistance, mergeItemStack, onContainerClosed, onCraftMatrixChanged, putStackInSlot, removeListener, resetDrag, setAll, setCanCraft, slotClick, trackInt, trackIntArray, updateProgressBarpublic final NonNullList<ItemStack> itemList
public CreativeContainer(PlayerEntity player)
public boolean canInteractWith(PlayerEntity playerIn)
canInteractWith in class Containerpublic void scrollTo(float pos)
public boolean canScroll()
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
transferStackInSlot in class Containerpublic boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot in class Containerpublic boolean canDragIntoSlot(Slot slotIn)
canDragIntoSlot in class Container