public class Inventory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
holderId |
protected com.nukkitx.math.vector.Vector3i |
holderPosition |
protected int |
id |
protected com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack[] |
items |
protected boolean |
open |
protected int |
size |
protected String |
title |
protected AtomicInteger |
transactionId |
protected com.github.steveice10.mc.protocol.data.game.window.WindowType |
windowType |
| Constructor and Description |
|---|
Inventory(int id,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType,
int size) |
Inventory(String title,
int id,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType,
int size) |
| Modifier and Type | Method and Description |
|---|---|
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack |
getItem(int slot) |
void |
setItem(int slot,
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack item) |
protected int id
protected boolean open
protected com.github.steveice10.mc.protocol.data.game.window.WindowType windowType
protected final int size
protected String title
protected com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack[] items
protected com.nukkitx.math.vector.Vector3i holderPosition
protected long holderId
protected AtomicInteger transactionId
public Inventory(int id,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType,
int size)
public Inventory(String title, int id, com.github.steveice10.mc.protocol.data.game.window.WindowType windowType, int size)
Copyright © 2021 GeyserMC. All rights reserved.