类 StonecutterMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.StonecutterMenu
-
字段概要
字段修饰符和类型字段说明private final ContainerLevelAccess
final Container
private ItemStack
static final int
(专用程序包) final Slot
private static final int
private static final int
(专用程序包) long
private final Level
static final int
(专用程序包) final ResultContainer
(专用程序包) final Slot
(专用程序包) final DataSlot
(专用程序包) Runnable
private static final int
private static final int
从类继承的字段 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
-
构造器概要
构造器构造器说明StonecutterMenu
(int p_40294_, Inventory p_40295_) StonecutterMenu
(int p_40297_, Inventory p_40298_, ContainerLevelAccess p_40299_) -
方法概要
修饰符和类型方法说明boolean
canTakeItemForPickAll
(ItemStack p_40321_, Slot p_40322_) boolean
clickMenuButton
(Player p_40309_, int p_40310_) int
int
MenuType
<?> getType()
boolean
private boolean
isValidRecipeIndex
(int p_40335_) quickMoveStack
(Player p_40328_, int p_40329_) void
registerUpdateListener
(Runnable p_40324_) void
private void
setupRecipeList
(ItemStack p_40305_) (专用程序包) void
setupResultSlot
(int p_366661_) void
slotsChanged
(Container p_40302_) boolean
stillValid
(Player p_40307_) 从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, findSlot, getCarried, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftPlaceCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getStateId, incrementStateId, initializeContents, isValidQuickcraftType, isValidSlotIndex, moveItemStackTo, removeSlotListener, resetQuickCraft, resumeRemoteUpdates, sendAllDataToRemote, setCarried, setData, setItem, setRemoteCarried, setRemoteSlot, setRemoteSlotNoCopy, setSelectedBundleItemIndex, setSynchronizer, stillValid, suppressRemoteUpdates, transferState
-
字段详细资料
-
INPUT_SLOT
public static final int INPUT_SLOT- 另请参阅:
-
RESULT_SLOT
public static final int RESULT_SLOT- 另请参阅:
-
INV_SLOT_START
private static final int INV_SLOT_START- 另请参阅:
-
INV_SLOT_END
private static final int INV_SLOT_END- 另请参阅:
-
USE_ROW_SLOT_START
private static final int USE_ROW_SLOT_START- 另请参阅:
-
USE_ROW_SLOT_END
private static final int USE_ROW_SLOT_END- 另请参阅:
-
access
-
selectedRecipeIndex
-
level
-
recipesForInput
-
input
-
lastSoundTime
long lastSoundTime -
inputSlot
-
resultSlot
-
slotUpdateListener
Runnable slotUpdateListener -
container
-
resultContainer
-
-
构造器详细资料
-
StonecutterMenu
-
StonecutterMenu
-
-
方法详细资料
-
getSelectedRecipeIndex
public int getSelectedRecipeIndex() -
getVisibleRecipes
-
getNumberOfVisibleRecipes
public int getNumberOfVisibleRecipes() -
hasInputItem
public boolean hasInputItem() -
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
clickMenuButton
- 覆盖:
clickMenuButton
在类中AbstractContainerMenu
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int p_40335_) -
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
setupRecipeList
-
setupResultSlot
void setupResultSlot(int p_366661_) -
getType
- 覆盖:
getType
在类中AbstractContainerMenu
-
registerUpdateListener
-
canTakeItemForPickAll
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-