Package net.minecraft.world.inventory
Class MerchantContainer
java.lang.Object
net.minecraft.world.inventory.MerchantContainer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MerchantOfferprivate intprivate final NonNullList<ItemStack>private final Merchantprivate intFields inherited from interface net.minecraft.world.Container
LARGE_MAX_STACK_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintgetItem(int p_40008_) booleanisEmpty()private booleanisPaymentSlot(int p_40023_) removeItem(int p_40010_, int p_40011_) removeItemNoUpdate(int p_40018_) voidvoidvoidsetSelectionHint(int p_40021_) booleanstillValid(Player p_40016_) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getContainerSizein interfaceContainer
-
isEmpty
public boolean isEmpty() -
getItem
-
removeItem
- Specified by:
removeItemin interfaceContainer
-
isPaymentSlot
private boolean isPaymentSlot(int p_40023_) -
removeItemNoUpdate
- Specified by:
removeItemNoUpdatein interfaceContainer
-
setItem
-
stillValid
- Specified by:
stillValidin interfaceContainer
-
setChanged
public void setChanged()- Specified by:
setChangedin interfaceContainer
-
updateSellItem
public void updateSellItem() -
getActiveOffer
-
setSelectionHint
public void setSelectionHint(int p_40021_) -
clearContent
public void clearContent()- Specified by:
clearContentin interfaceClearable
-
getFutureXp
public int getFutureXp()
-