Package org.geysermc.geyser.inventory
Class Generic3X3Container
java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.Container
org.geysermc.geyser.inventory.Generic3X3Container
-
Field Summary
Fields inherited from class org.geysermc.geyser.inventory.Inventory
containerType, holderId, holderPosition, id, items, size, title
-
Constructor Summary
ConstructorDescriptionGeneric3X3Container(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether we need to set the container type asContainerType.DROPPER
.void
setUsingRealBlock(boolean usingRealBlock, String javaBlockId)
Will be overwritten for droppers.Methods inherited from class org.geysermc.geyser.inventory.Container
getContainerSize, getItem, getPlayerInventory, getSize, isUsingRealBlock, setItem
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
-
Generic3X3Container
public Generic3X3Container(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.inventory.ContainerType containerType, PlayerInventory playerInventory)
-
-
Method Details
-
setUsingRealBlock
Description copied from class:Container
Will be overwritten for droppers.- Overrides:
setUsingRealBlock
in classContainer
- Parameters:
usingRealBlock
- whether this container is using a real container or notjavaBlockId
- the Java block string of the block, if real
-
isDropper
public boolean isDropper()Whether we need to set the container type asContainerType.DROPPER
. Used atGeneric3X3InventoryTranslator.openInventory(GeyserSession, Inventory)
-