public class BlockInventoryHolder extends InventoryHolder
| Constructor and Description |
|---|
BlockInventoryHolder(String javaBlockIdentifier,
com.nukkitx.protocol.bedrock.data.inventory.ContainerType containerType,
String... validBlocks) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkInteractionPosition(GeyserSession session)
Will be overwritten in the beacon inventory translator to remove the check, since virtual inventories can't exist.
|
void |
closeInventory(InventoryTranslator translator,
GeyserSession session,
Inventory inventory) |
protected boolean |
isValidBlock(String[] javaBlockString) |
void |
openInventory(InventoryTranslator translator,
GeyserSession session,
Inventory inventory) |
void |
prepareInventory(InventoryTranslator translator,
GeyserSession session,
Inventory inventory) |
protected void |
setCustomName(GeyserSession session,
com.nukkitx.math.vector.Vector3i position,
Inventory inventory,
int javaBlockState) |
public void prepareInventory(InventoryTranslator translator, GeyserSession session, Inventory inventory)
prepareInventory in class InventoryHolderprotected boolean checkInteractionPosition(GeyserSession session)
protected boolean isValidBlock(String[] javaBlockString)
protected void setCustomName(GeyserSession session, com.nukkitx.math.vector.Vector3i position, Inventory inventory, int javaBlockState)
public void openInventory(InventoryTranslator translator, GeyserSession session, Inventory inventory)
openInventory in class InventoryHolderpublic void closeInventory(InventoryTranslator translator, GeyserSession session, Inventory inventory)
closeInventory in class InventoryHolderCopyright © 2021 GeyserMC. All rights reserved.