类 MerchantMenu
java.lang.Object
net.minecraft.world.inventory.AbstractContainerMenu
net.minecraft.world.inventory.MerchantMenu
-
字段概要
字段修饰符和类型字段说明private static final int
private boolean
private static final int
private static final int
private int
protected static final int
protected static final int
protected static final int
private static final int
private static final int
private static final int
private boolean
private final MerchantContainer
private final Merchant
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
-
构造器概要
构造器构造器说明MerchantMenu
(int p_40033_, Inventory p_40034_) MerchantMenu
(int p_40036_, Inventory p_40037_, Merchant p_40038_) -
方法概要
修饰符和类型方法说明boolean
boolean
canTakeItemForPickAll
(ItemStack p_40044_, Slot p_40045_) int
int
int
private void
moveFromInventoryToPaymentSlot
(int p_40061_, ItemCost p_331779_) private void
quickMoveStack
(Player p_40053_, int p_40054_) void
void
setCanRestock
(boolean p_40059_) void
setMerchantLevel
(int p_40070_) void
setOffers
(MerchantOffers p_40047_) void
setSelectionHint
(int p_40064_) void
setShowProgressBar
(boolean p_40049_) void
setXp
(int p_40067_) boolean
void
slotsChanged
(Container p_40040_) boolean
stillValid
(Player p_40042_) void
tryMoveItems
(int p_40073_) 从类继承的方法 net.minecraft.world.inventory.AbstractContainerMenu
addDataSlot, addDataSlots, addInventoryExtendedSlots, addInventoryHotbarSlots, addSlot, addSlotListener, addStandardInventorySlots, broadcastChanges, broadcastFullState, canDragTo, canItemQuickReplace, 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
-
字段详细资料
-
PAYMENT1_SLOT
protected static final int PAYMENT1_SLOT- 另请参阅:
-
PAYMENT2_SLOT
protected static final int PAYMENT2_SLOT- 另请参阅:
-
RESULT_SLOT
protected 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- 另请参阅:
-
SELLSLOT1_X
private static final int SELLSLOT1_X- 另请参阅:
-
SELLSLOT2_X
private static final int SELLSLOT2_X- 另请参阅:
-
BUYSLOT_X
private static final int BUYSLOT_X- 另请参阅:
-
ROW_Y
private static final int ROW_Y- 另请参阅:
-
trader
-
tradeContainer
-
merchantLevel
private int merchantLevel -
showProgressBar
private boolean showProgressBar -
canRestock
private boolean canRestock
-
-
构造器详细资料
-
MerchantMenu
-
MerchantMenu
-
-
方法详细资料
-
setShowProgressBar
public void setShowProgressBar(boolean p_40049_) -
slotsChanged
- 覆盖:
slotsChanged
在类中AbstractContainerMenu
-
setSelectionHint
public void setSelectionHint(int p_40064_) -
stillValid
- 指定者:
stillValid
在类中AbstractContainerMenu
-
getTraderXp
public int getTraderXp() -
getFutureTraderXp
public int getFutureTraderXp() -
setXp
public void setXp(int p_40067_) -
getTraderLevel
public int getTraderLevel() -
setMerchantLevel
public void setMerchantLevel(int p_40070_) -
setCanRestock
public void setCanRestock(boolean p_40059_) -
canRestock
public boolean canRestock() -
canTakeItemForPickAll
-
quickMoveStack
- 指定者:
quickMoveStack
在类中AbstractContainerMenu
-
playTradeSound
private void playTradeSound() -
removed
- 覆盖:
removed
在类中AbstractContainerMenu
-
tryMoveItems
public void tryMoveItems(int p_40073_) -
moveFromInventoryToPaymentSlot
-
setOffers
-
getOffers
-
showProgressBar
public boolean showProgressBar()
-