类 ItemCombinerMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.ItemCombinerMenu
- 直接已知子类:
AnvilMenu
,SmithingMenu
-
字段概要
字段修饰符和类型字段说明protected final ContainerLevelAccess
private static final int
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, SLOT_SIZE, slots, SLOTS_PER_ROW
-
构造器概要
构造器构造器说明ItemCombinerMenu
(MenuType<?> p_39773_, int p_39774_, Inventory p_39775_, ContainerLevelAccess p_39776_, ItemCombinerMenuSlotDefinition p_379677_) -
方法概要
修饰符和类型方法说明protected boolean
canMoveIntoInputSlots
(ItemStack p_39787_) private SimpleContainer
createContainer
(int p_267204_) private void
createInputSlots
(ItemCombinerMenuSlotDefinition p_267172_) abstract void
private void
createResultSlot
(ItemCombinerMenuSlotDefinition p_267000_) private int
private int
int
private int
private int
protected abstract boolean
isValidBlock
(BlockState p_39788_) protected boolean
protected abstract void
quickMoveStack
(Player p_39792_, int p_39793_) void
void
slotsChanged
(Container p_39778_) boolean
stillValid
(Player p_39780_) 从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, 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, setRemoteSlotUnsafe, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
INVENTORY_SLOTS_PER_ROW
private static final int INVENTORY_SLOTS_PER_ROW- 另请参阅:
-
INVENTORY_ROWS
private static final int INVENTORY_ROWS- 另请参阅:
-
INPUT_SLOT_START
private static final int INPUT_SLOT_START- 另请参阅:
-
access
-
player
-
inputSlots
-
resultSlots
-
resultSlotIndex
private final int resultSlotIndex
-
-
构造器详细资料
-
ItemCombinerMenu
public ItemCombinerMenu(@Nullable MenuType<?> p_39773_, int p_39774_, Inventory p_39775_, ContainerLevelAccess p_39776_, ItemCombinerMenuSlotDefinition p_379677_)
-
-
方法详细资料
-
mayPickup
-
onTake
-
isValidBlock
-
createInputSlots
-
createResultSlot
-
createResult
public abstract void createResult() -
createContainer
-
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
canMoveIntoInputSlots
-
getResultSlot
public int getResultSlot() -
getInventorySlotStart
private int getInventorySlotStart() -
getInventorySlotEnd
private int getInventorySlotEnd() -
getUseRowStart
private int getUseRowStart() -
getUseRowEnd
private int getUseRowEnd()
-