Package org.geysermc.geyser.inventory
Class GeyserItemStack
java.lang.Object
org.geysermc.geyser.inventory.GeyserItemStack
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(int add)
protected boolean
copy()
copy(int newAmount)
boolean
static GeyserItemStack
from(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack)
int
com.nukkitx.protocol.bedrock.data.inventory.ItemData
getItemData(GeyserSession session)
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack
com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack
getItemStack(int newAmount)
int
getMapping(GeyserSession session)
com.github.steveice10.opennbt.tag.builtin.CompoundTag
getNbt()
int
getNetId()
int
hashCode()
boolean
isEmpty()
void
setAmount(int amount)
void
setNbt(com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt)
void
setNetId(int netId)
void
sub(int sub)
toString()
-
Field Details
-
EMPTY
-
-
Method Details
-
from
@Nonnull public static GeyserItemStack from(com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack itemStack) -
getJavaId
public int getJavaId() -
getAmount
public int getAmount() -
getNbt
public com.github.steveice10.opennbt.tag.builtin.CompoundTag getNbt() -
getNetId
public int getNetId() -
add
public void add(int add) -
sub
public void sub(int sub) -
getItemStack
public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack getItemStack() -
getItemStack
public com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack getItemStack(int newAmount) -
getItemData
-
getMapping
-
isEmpty
public boolean isEmpty() -
copy
-
copy
-
setAmount
public void setAmount(int amount) -
setNbt
public void setNbt(com.github.steveice10.opennbt.tag.builtin.CompoundTag nbt) -
setNetId
public void setNetId(int netId) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-