Class ItemStack
java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.ItemStack
-
Constructor Summary
ConstructorsConstructorDescriptionItemStack(int id) ItemStack(int id, int amount) ItemStack(int id, int amount, @Nullable DataComponents dataComponents) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanclone()booleanint@Nullable DataComponents@NonNull DataComponentsintgetId()inthashCode()voidsetAmount(int amount) @NonNull StringtoString()withAddedComponents(@NonNull DataComponents addedComponents)
-
Constructor Details
-
ItemStack
public ItemStack(int id) -
ItemStack
public ItemStack(int id, int amount) -
ItemStack
-
-
Method Details
-
getDataComponentsOrEmpty
-
withAddedComponents
-
clone
-
getId
public int getId() -
getAmount
public int getAmount() -
getDataComponents
-
setAmount
public void setAmount(int amount) -
equals
-
canEqual
-
hashCode
-
toString
-