public static class CreativeScreen.CreativeContainer extends Container
| 修飾子とタイプ | フィールドと説明 |
|---|---|
NonNullList<ItemStack> |
itemList
the list of items in this container
|
inventorySlots, windowId| コンストラクタと説明 |
|---|
CreativeContainer(PlayerEntity player) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canDragIntoSlot(Slot slotIn)
Returns true if the player can "drag-spilt" items into this slot,. returns true by default.
|
boolean |
canInteractWith(PlayerEntity 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(PlayerEntity playerIn,
int index)
Handle when the stack in slot
index is shift-clicked. |
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 クラス内 Containerpublic void scrollTo(float pos)
public boolean canScroll()
public ItemStack transferStackInSlot(PlayerEntity playerIn, int index)
index is shift-clicked. Normally this moves the stack between the player
inventory and the other inventory(s).transferStackInSlot クラス内 Containerpublic boolean canMergeSlot(ItemStack stack, Slot slotIn)
canMergeSlot クラス内 Containerpublic boolean canDragIntoSlot(Slot slotIn)
canDragIntoSlot クラス内 Container