Class ItemStack

java.lang.Object
com.loohp.limbo.inventory.ItemStack
All Implemented Interfaces:
Cloneable

public class ItemStack extends Object implements Cloneable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ItemStack
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemStack(net.kyori.adventure.key.Key material)
     
    ItemStack(net.kyori.adventure.key.Key material, int amount)
     
    ItemStack(net.kyori.adventure.key.Key material, int amount, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    amount(int amount)
     
     
    <T> T
    component(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type)
     
    component(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type, T value)
     
    org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents
     
    components(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components)
     
    net.kyori.adventure.text.Component
     
    displayName(net.kyori.adventure.text.Component component)
     
    boolean
     
    int
     
    int
     
    boolean
     
     
    net.kyori.adventure.key.Key
     
    type(net.kyori.adventure.key.Key material)
     

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • ItemStack

      public ItemStack(net.kyori.adventure.key.Key material)
    • ItemStack

      public ItemStack(net.kyori.adventure.key.Key material, int amount)
    • ItemStack

      public ItemStack(net.kyori.adventure.key.Key material, int amount, org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components)
  • Method Details

    • clone

      public ItemStack clone()
      Overrides:
      clone in class Object
    • type

      public net.kyori.adventure.key.Key type()
    • type

      public ItemStack type(net.kyori.adventure.key.Key material)
    • amount

      public int amount()
    • amount

      public ItemStack amount(int amount)
    • components

      public org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components()
    • components

      @Contract("_ -> new") public ItemStack components(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponents components)
    • component

      public <T> T component(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type)
    • component

      @Contract("_, _ -> this") public <T> ItemStack component(org.geysermc.mcprotocollib.protocol.data.game.item.component.DataComponentType<T> type, T value)
    • displayName

      public net.kyori.adventure.text.Component displayName()
    • displayName

      @Contract("_ -> this") public ItemStack displayName(net.kyori.adventure.text.Component component)
    • getMaxStackSize

      public int getMaxStackSize()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • isSimilar

      public boolean isSimilar(ItemStack stack)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object