public class Inventory extends Object
| Modifier and Type | Field and Description |
|---|---|
protected long |
holderId |
protected com.nukkitx.math.vector.Vector3i |
holderPosition
The location of the inventory block.
|
protected int |
id |
protected GeyserItemStack[] |
items |
protected int |
size |
protected String |
title |
protected short |
transactionId |
protected com.github.steveice10.mc.protocol.data.game.window.WindowType |
windowType
Used for smooth transitions between two windows of the same type.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Inventory(int id,
int size,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType) |
protected |
Inventory(String title,
int id,
int size,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType) |
| Modifier and Type | Method and Description |
|---|---|
GeyserItemStack |
getItem(int slot) |
short |
getNextTransactionId() |
void |
setItem(int slot,
@NonNull GeyserItemStack newItem,
GeyserSession session) |
String |
toString() |
protected static void |
updateItemNetId(GeyserItemStack oldItem,
GeyserItemStack newItem,
GeyserSession session) |
protected final int id
protected final int size
protected final com.github.steveice10.mc.protocol.data.game.window.WindowType windowType
protected String title
protected GeyserItemStack[] items
protected com.nukkitx.math.vector.Vector3i holderPosition
protected long holderId
protected short transactionId
protected Inventory(int id,
int size,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType)
protected Inventory(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.window.WindowType windowType)
public GeyserItemStack getItem(int slot)
public void setItem(int slot,
@NonNull
@NonNull GeyserItemStack newItem,
GeyserSession session)
protected static void updateItemNetId(GeyserItemStack oldItem, GeyserItemStack newItem, GeyserSession session)
public short getNextTransactionId()
Copyright © 2021 GeyserMC. All rights reserved.