Package org.geysermc.geyser.inventory
Class MerchantContainer
java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.Container
org.geysermc.geyser.inventory.MerchantContainer
-
Field Summary
Fields inherited from class org.geysermc.geyser.inventory.Inventory
containerType, holderId, holderPosition, id, items, size, title
-
Constructor Summary
ConstructorDescriptionMerchantContainer(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
-
Method Summary
Modifier and TypeMethodDescriptioncom.github.steveice10.mc.protocol.data.game.inventory.VillagerTrade[]
void
setVillager(Entity villager)
void
setVillagerTrades(com.github.steveice10.mc.protocol.data.game.inventory.VillagerTrade[] villagerTrades)
Methods inherited from class org.geysermc.geyser.inventory.Container
getContainerSize, getItem, getPlayerInventory, getSize, isUsingRealBlock, setItem, setUsingRealBlock
Methods inherited from class org.geysermc.geyser.inventory.Inventory
getContainerType, getHolderId, getHolderPosition, getId, getStateId, getTitle, isPending, setHolderId, setHolderPosition, setPending, setStateId, setTitle, toString, updateItemNetId
-
Constructor Details
-
MerchantContainer
public MerchantContainer(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
-
-
Method Details
-
getVillager
-
getVillagerTrades
public com.github.steveice10.mc.protocol.data.game.inventory.VillagerTrade[] getVillagerTrades() -
setVillager
-
setVillagerTrades
public void setVillagerTrades(com.github.steveice10.mc.protocol.data.game.inventory.VillagerTrade[] villagerTrades)
-