Package net.minecraft.inventory
Class MerchantInventory
java.lang.Object
net.minecraft.inventory.MerchantInventory
- All Implemented Interfaces:
IClearable
,IInventory
-
Field Summary
Modifier and TypeFieldDescriptionprivate MerchantOffer
private int
private final NonNullList<ItemStack>
private final IMerchant
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
getItem
(int p_70301_1_) boolean
isEmpty()
private boolean
isPaymentSlot
(int p_70469_1_) removeItem
(int p_70298_1_, int p_70298_2_) removeItemNoUpdate
(int p_70304_1_) void
void
void
setSelectionHint
(int p_70471_1_) boolean
stillValid
(PlayerEntity p_70300_1_) 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.inventory.IInventory
canPlaceItem, countItem, getMaxStackSize, hasAnyOf, startOpen, stopOpen
-
Field Details
-
merchant
-
itemStacks
-
activeOffer
-
selectionHint
private int selectionHint -
futureXp
private int futureXp
-
-
Constructor Details
-
MerchantInventory
-
-
Method Details
-
getContainerSize
public int getContainerSize()- Specified by:
getContainerSize
in interfaceIInventory
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceIInventory
-
getItem
- Specified by:
getItem
in interfaceIInventory
-
removeItem
- Specified by:
removeItem
in interfaceIInventory
-
isPaymentSlot
private boolean isPaymentSlot(int p_70469_1_) -
removeItemNoUpdate
- Specified by:
removeItemNoUpdate
in interfaceIInventory
-
setItem
- Specified by:
setItem
in interfaceIInventory
-
stillValid
- Specified by:
stillValid
in interfaceIInventory
-
setChanged
public void setChanged()- Specified by:
setChanged
in interfaceIInventory
-
updateSellItem
public void updateSellItem() -
getActiveOffer
-
setSelectionHint
public void setSelectionHint(int p_70471_1_) -
clearContent
public void clearContent()- Specified by:
clearContent
in interfaceIClearable
-
getFutureXp
public int getFutureXp()
-