类 ItemCombinerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
- 直接已知子类:
AnvilMenu
,SmithingMenu
-
字段概要
字段修饰符和类型字段说明protected final ContainerLevelAccess
protected final Container
private static final int
private static final int
protected final Player
private final int
protected final ResultContainer
从类继承的字段 net.minecraft.world.inventory.AbstractContainerMenu
CARRIED_SLOT_SIZE, containerId, QUICKCRAFT_HEADER_CONTINUE, QUICKCRAFT_HEADER_END, QUICKCRAFT_HEADER_START, QUICKCRAFT_TYPE_CHARITABLE, QUICKCRAFT_TYPE_CLONE, QUICKCRAFT_TYPE_GREEDY, SLOT_CLICKED_OUTSIDE, slots
-
构造器概要
构造器构造器说明ItemCombinerMenu
(MenuType<?> pType, int pContainerId, Inventory pPlayerInventory, ContainerLevelAccess pAccess) -
方法概要
修饰符和类型方法说明protected boolean
canMoveIntoInputSlots
(ItemStack pStack) private SimpleContainer
createContainer
(int pSize) protected abstract ItemCombinerMenuSlotDefinition
private void
createInputSlots
(ItemCombinerMenuSlotDefinition pSlotDefinition) private void
createInventorySlots
(Inventory pInventory) abstract void
private void
createResultSlot
(ItemCombinerMenuSlotDefinition pSlotDefinition) private int
private int
int
int
getSlotToQuickMoveTo
(ItemStack pStack) private int
private int
protected abstract boolean
isValidBlock
(BlockState pState) protected abstract boolean
protected abstract void
quickMoveStack
(Player pPlayer, int pIndex) void
void
slotsChanged
(Container pInventory) boolean
stillValid
(Player pPlayer) 从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, getType, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
构造器详细资料
-
ItemCombinerMenu
public ItemCombinerMenu(@Nullable MenuType<?> pType, int pContainerId, Inventory pPlayerInventory, ContainerLevelAccess pAccess)
-
-
方法详细资料
-
mayPickup
-
onTake
-
isValidBlock
-
createInputSlots
-
createResultSlot
-
createInventorySlots
-
createResult
public abstract void createResult() -
createInputSlotDefinitions
-
createContainer
-
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
canMoveIntoInputSlots
-
getSlotToQuickMoveTo
-
getResultSlot
public int getResultSlot() -
getInventorySlotStart
private int getInventorySlotStart() -
getInventorySlotEnd
private int getInventorySlotEnd() -
getUseRowStart
private int getUseRowStart() -
getUseRowEnd
private int getUseRowEnd()
-