public class Container extends Inventory
Inventory and PlayerInventoryholderId, holderPosition, id, items, size, title, windowType| Constructor and Description |
|---|
Container(String title,
int id,
int size,
com.github.steveice10.mc.protocol.data.game.window.WindowType windowType,
PlayerInventory playerInventory) |
| Modifier and Type | Method and Description |
|---|---|
GeyserItemStack |
getItem(int slot) |
int |
getSize() |
void |
setItem(int slot,
@NonNull GeyserItemStack newItem,
GeyserSession session) |
void |
setUsingRealBlock(boolean usingRealBlock,
String javaBlockId)
Will be overwritten for droppers.
|
toString, updateItemNetIdpublic Container(String title, int id, int size, com.github.steveice10.mc.protocol.data.game.window.WindowType windowType, PlayerInventory playerInventory)
public GeyserItemStack getItem(int slot)
public void setItem(int slot,
@NonNull
@NonNull GeyserItemStack newItem,
GeyserSession session)
public int getSize()
public void setUsingRealBlock(boolean usingRealBlock,
String javaBlockId)
usingRealBlock - whether this container is using a real container or notjavaBlockId - the Java block string of the block, if realCopyright © 2021 GeyserMC. All rights reserved.