Package org.geysermc.geyser.inventory
Class Generic9X3Container
java.lang.Object
org.geysermc.geyser.inventory.Inventory
org.geysermc.geyser.inventory.Container
org.geysermc.geyser.inventory.Generic9X3Container
A "hack" to be able to use existing barrels.
The only difference to chests appears to be the different ContainerSlotType - this accounts for it.
-
Field Summary
Fields inherited from class org.geysermc.geyser.inventory.Container
playerInventoryFields inherited from class org.geysermc.geyser.inventory.Inventory
containerType, holderId, holderPosition, items, javaId, size, title -
Constructor Summary
ConstructorsConstructorDescriptionGeneric9X3Container(GeyserSession session, String title, int id, int size, org.geysermc.mcprotocollib.protocol.data.game.inventory.ContainerType containerType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisBarrel()voidsetBarrel(boolean isBarrel) voidsetUsingRealBlock(boolean usingRealBlock, Block block) Will be overwritten for droppers.Methods inherited from class org.geysermc.geyser.inventory.Container
getContainerSize, getIntegratedPackTitlePrefix, getItem, getOffsetForHotbar, getPlayerInventory, getPrefixedTitle, getSize, isUsingRealBlock, setItemMethods inherited from class org.geysermc.geyser.inventory.Inventory
getBedrockId, getContainerType, getHolderId, getHolderPosition, getJavaId, getNextStateId, getStateId, getTitle, incrementStateId, isDisplayed, resetNextStateId, setBedrockId, setDisplayed, setHolderId, setHolderPosition, setStateId, shouldConfirmContainerClose, toString, updateItemNetId
-
Constructor Details
-
Generic9X3Container
public Generic9X3Container(GeyserSession session, String title, int id, int size, org.geysermc.mcprotocollib.protocol.data.game.inventory.ContainerType containerType)
-
-
Method Details
-
setUsingRealBlock
Description copied from class:ContainerWill be overwritten for droppers.- Overrides:
setUsingRealBlockin classContainer- Parameters:
usingRealBlock- whether this container is using a real container or notblock- the Java block, if real
-
isBarrel
public boolean isBarrel() -
setBarrel
public void setBarrel(boolean isBarrel)
-