类 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
private List<StonecutterRecipe>
static final int
(专用程序包) final ResultContainer
(专用程序包) final Slot
private 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, slots
-
构造器概要
构造器构造器说明StonecutterMenu
(int pContainerId, Inventory pPlayerInventory) StonecutterMenu
(int pContainerId, Inventory pPlayerInventory, ContainerLevelAccess pAccess) -
方法概要
修饰符和类型方法说明boolean
canTakeItemForPickAll
(ItemStack pStack, Slot pSlot) boolean
clickMenuButton
(Player pPlayer, int pId) int
int
MenuType<?>
getType()
boolean
private boolean
isValidRecipeIndex
(int pRecipeIndex) quickMoveStack
(Player pPlayer, int pIndex) void
registerUpdateListener
(Runnable pListener) void
private void
setupRecipeList
(Container pContainer, ItemStack pStack) (专用程序包) void
void
slotsChanged
(Container pInventory) boolean
stillValid
(Player pPlayer) 从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addSlot, addSlotListener, 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, 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
-
recipes
-
input
-
lastSoundTime
long lastSoundTime -
inputSlot
-
resultSlot
-
slotUpdateListener
Runnable slotUpdateListener -
container
-
resultContainer
-
-
构造器详细资料
-
StonecutterMenu
-
StonecutterMenu
-
-
方法详细资料
-
getSelectedRecipeIndex
public int getSelectedRecipeIndex() -
getRecipes
-
getNumRecipes
public int getNumRecipes() -
hasInputItem
public boolean hasInputItem() -
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
clickMenuButton
- 覆盖:
clickMenuButton
在类中AbstractContainerMenu
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int pRecipeIndex) -
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
setupRecipeList
-
setupResultSlot
void setupResultSlot() -
getType
- 覆盖:
getType
在类中AbstractContainerMenu
-
registerUpdateListener
-
canTakeItemForPickAll
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-