Raven B4
  • Main Page
  • Guide
    • Setup
    • Examples
  • Documentation
    • imports
    • events
    • client
    • entity
    • network
    • world
    • render
    • gl
    • modules
    • config
    • keybinds
    • inventory
    • tile entity
    • util
    • bridge
    • http
    • json
    • packets
    • objects
Powered by GitBook
On this page
  • click
  • getBookContents
  • getChest
  • getChestSize
  • getContainer
  • getSize
  • getSlot
  • getStackInChestSlot
  • getStackInSlot
  • open
  • setSlot
  1. Documentation

inventory

Last updated 9 months ago

click

inventory.click(int slot, int button, int mode);

Clicks a slot in the inventory.

getBookContents

List<String> pages = inventory.getBookContents();

Returns a list of pages in a json format.

getChest

String chestName = inventory.getChest();

Gets the current chest name.

getChestSize

int chestSize = inventory.getChestSize();

Gets the current chest's size.

getContainer

String container = inventory.getContainer();

Gets the current container name.

getSize

int size = inventory.getSize();

Gets the current inventory's size.

getSlot

int slot = inventory.getSlot();

Returns the current slot.

getStackInChestSlot

ItemStack item = inventory.getStackInChestSlot(int slot);

Gets the item in a specified chest slot.

getStackInSlot

ItemStack item = inventory.getStackInSlot(int slot);

Gets the item in a specified slot.

open

inventory.open();

Opens your inventory menu.

setSlot

inventory.setSlot(int slot);

Sets your slot.

https://wiki.vg/Protocol#Click_Container