Class ItemAttributeModifiers

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

public class ItemAttributeModifiers extends Object
  • Constructor Details

  • Method Details

    • getModifiers

      public List<ItemAttributeModifiers.Entry> getModifiers()
    • 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
    • withModifiers

      public @NonNull ItemAttributeModifiers withModifiers(List<ItemAttributeModifiers.Entry> modifiers)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withShowInTooltip

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