java.lang.Object
org.geysermc.mcprotocollib.protocol.data.game.item.component.ItemEnchantments

public class ItemEnchantments extends Object
  • Constructor Details

    • ItemEnchantments

      public ItemEnchantments(Map<Integer,Integer> enchantments, boolean showInTooltip)
  • Method Details

    • getEnchantments

      public Map<Integer,Integer> getEnchantments()
    • isShowInTooltip

      public boolean isShowInTooltip()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

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

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withEnchantments

      public @NonNull ItemEnchantments withEnchantments(Map<Integer,Integer> enchantments)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withShowInTooltip

      public @NonNull ItemEnchantments withShowInTooltip(boolean showInTooltip)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).