Class AttributeModifier

    • Method Detail

      • getUniqueId

        @NotNull
        public @NotNull UUID getUniqueId()
        Get the unique ID for this modifier.
        Returns:
        unique id
      • getName

        @NotNull
        public @NotNull String getName()
        Get the name of this modifier.
        Returns:
        name
      • getAmount

        public double getAmount()
        Get the amount by which this modifier will apply its AttributeModifier.Operation.
        Returns:
        modification amount
      • getOperation

        @NotNull
        public @NotNull AttributeModifier.Operation getOperation()
        Get the operation this modifier will apply.
        Returns:
        operation
      • getSlot

        @Nullable
        public @Nullable EquipmentSlot getSlot()
        Get the EquipmentSlot this AttributeModifier is active on, or null if this modifier is applicable for any slot.
        Returns:
        the slot
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object