Package net.minecraft.world.inventory
Class MerchantContainer
java.lang.Object
net.minecraft.world.inventory.MerchantContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate MerchantOffer
private int
private final NonNullList<ItemStack>
private final Merchant
private int
Fields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
getItem
(int p_40008_) boolean
isEmpty()
private boolean
isPaymentSlot
(int p_40023_) removeItem
(int p_40010_, int p_40011_) removeItemNoUpdate
(int p_40018_) void
void
void
setSelectionHint
(int p_40021_) boolean
stillValid
(Player p_40016_) void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.Container
canPlaceItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
-
Field Details
-
merchant
-
itemStacks
-
activeOffer
-
selectionHint
private int selectionHint -
futureXp
private int futureXp
-
-
Constructor Details
-
MerchantContainer
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItem
- Specified by:
removeItem
in interfaceContainer
-
isPaymentSlot
private boolean isPaymentSlot(int p_40023_) -
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceContainer
-
setItem
-
stillValid
- Specified by:
stillValid
in interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceContainer
-
updateSellItem
public void updateSellItem() -
getActiveOffer
-
setSelectionHint
public void setSelectionHint(int p_40021_) -
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceClearable
-
getFutureXp
public int getFutureXp()
-