public class GeyserItemStack extends Object
| Modifier and Type | Field and Description |
|---|---|
static GeyserItemStack |
EMPTY |
| Constructor and Description |
|---|
GeyserItemStack(int javaId) |
GeyserItemStack(int javaId,
int amount) |
GeyserItemStack(int javaId,
int amount,
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt) |
GeyserItemStack(int javaId,
int amount,
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt,
int netId) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int add) |
GeyserItemStack |
copy() |
GeyserItemStack |
copy(int newAmount) |
static GeyserItemStack |
from(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack) |
int |
getAmount() |
com.nukkitx.protocol.bedrock.data.inventory.ItemData |
getItemData(GeyserSession session) |
ItemEntry |
getItemEntry() |
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack |
getItemStack() |
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack |
getItemStack(int newAmount) |
int |
getJavaId() |
com.github.steveice10.opennbt.tag.builtin.CompoundTag |
getNbt() |
int |
getNetId() |
boolean |
isEmpty() |
void |
sub(int sub) |
public static final GeyserItemStack EMPTY
public GeyserItemStack(int javaId)
public GeyserItemStack(int javaId,
int amount)
public GeyserItemStack(int javaId,
int amount,
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt)
public GeyserItemStack(int javaId,
int amount,
com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt,
int netId)
public static GeyserItemStack from(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)
public int getJavaId()
public int getAmount()
public com.github.steveice10.opennbt.tag.builtin.CompoundTag getNbt()
public int getNetId()
public void add(int add)
public void sub(int sub)
public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack getItemStack()
public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack getItemStack(int newAmount)
public com.nukkitx.protocol.bedrock.data.inventory.ItemData getItemData(GeyserSession session)
public ItemEntry getItemEntry()
public boolean isEmpty()
public GeyserItemStack copy()
public GeyserItemStack copy(int newAmount)
Copyright © 2021 GeyserMC. All rights reserved.