Class CustomItem.AttributeInformation

java.lang.Object
com.github.imdabigboss.easydatapack.api.items.CustomItem.AttributeInformation
Enclosing class:
CustomItem

public static class CustomItem.AttributeInformation extends Object
This class represents the information about an attribute modifier.
  • Constructor Summary

    Constructors
    Constructor
    Description
    AttributeInformation​(@NonNull org.bukkit.attribute.Attribute attribute, @NonNull org.bukkit.attribute.AttributeModifier[] modifier)
    Creates a new attribute information.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull org.bukkit.attribute.Attribute
    Gets the attribute.
    @NonNull org.bukkit.attribute.AttributeModifier[]
    Gets the modifier.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AttributeInformation

      public AttributeInformation(@NonNull org.bukkit.attribute.Attribute attribute, @NonNull org.bukkit.attribute.AttributeModifier[] modifier)
      Creates a new attribute information.
      Parameters:
      attribute - the attribute
      modifier - the modifier
  • Method Details

    • getAttribute

      public @NonNull org.bukkit.attribute.Attribute getAttribute()
      Gets the attribute.
      Returns:
      the attribute
    • getModifiers

      public @NonNull org.bukkit.attribute.AttributeModifier[] getModifiers()
      Gets the modifier.
      Returns:
      the modifier