Package net.minecraft.world.inventory
Class MerchantContainer
java.lang.Object
net.minecraft.world.inventory.MerchantContainer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate MerchantOfferprivate intprivate final NonNullList<ItemStack>private final Merchantprivate intFields inherited from interface net.minecraft.world.ContainerDEFAULT_DISTANCE_LIMIT, LARGE_MAX_STACK_SIZE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.ContainercanPlaceItem, canTakeItem, countItem, getMaxStackSize, hasAnyMatching, hasAnyOf, startOpen, stopOpen
- 
Field Details- 
merchant
- 
itemStacks
- 
activeOffer
- 
selectionHintprivate int selectionHint
- 
futureXpprivate int futureXp
 
- 
- 
Constructor Details- 
MerchantContainer
 
- 
- 
Method Details- 
getContainerSizepublic int getContainerSize()- Specified by:
- getContainerSizein interface- Container
 
- 
isEmptypublic boolean isEmpty()
- 
getItem
- 
removeItem- Specified by:
- removeItemin interface- Container
 
- 
isPaymentSlotprivate boolean isPaymentSlot(int p_40023_) 
- 
removeItemNoUpdate- Specified by:
- removeItemNoUpdatein interface- Container
 
- 
setItem
- 
stillValid- Specified by:
- stillValidin interface- Container
 
- 
setChangedpublic void setChanged()- Specified by:
- setChangedin interface- Container
 
- 
updateSellItempublic void updateSellItem()
- 
getActiveOffer
- 
setSelectionHintpublic void setSelectionHint(int p_40021_) 
- 
clearContentpublic void clearContent()- Specified by:
- clearContentin interface- Clearable
 
- 
getFutureXppublic int getFutureXp()
 
-