Interface ItemAttribute
public interface ItemAttribute
Represents an
AttributeModifier for the specific AttributeType
an ItemStackLike can apply when the EquipmentCondition is met.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the equipment condition.modifier()Returns the attribute modifier.static ItemAttributeof(Supplier<? extends AttributeType> type, AttributeModifier modifier, Supplier<? extends EquipmentCondition> condition) Creates an item attribute with the given values.static ItemAttributeof(Supplier<? extends AttributeType> type, AttributeModifier modifier, EquipmentCondition condition) Creates an item attribute with the given values.static ItemAttributeof(AttributeType type, AttributeModifier modifier, Supplier<? extends EquipmentCondition> condition) Creates an item attribute with the given values.static ItemAttributeof(AttributeType type, AttributeModifier modifier, EquipmentCondition condition) Creates an item attribute with the given values.type()Returns the attribute type.
-
Method Details
-
of
static ItemAttribute of(Supplier<? extends AttributeType> type, AttributeModifier modifier, Supplier<? extends EquipmentCondition> condition) Creates an item attribute with the given values.- Parameters:
type- The attribute typemodifier- The attribute modifiercondition- The equipment condition- Returns:
- The item attribute
-
of
static ItemAttribute of(Supplier<? extends AttributeType> type, AttributeModifier modifier, EquipmentCondition condition) Creates an item attribute with the given values.- Parameters:
type- The attribute typemodifier- The attribute modifiercondition- The equipment condition- Returns:
- The item attribute
-
of
static ItemAttribute of(AttributeType type, AttributeModifier modifier, Supplier<? extends EquipmentCondition> condition) Creates an item attribute with the given values.- Parameters:
type- The attribute typemodifier- The attribute modifiercondition- The equipment condition- Returns:
- The item attribute
-
of
static ItemAttribute of(AttributeType type, AttributeModifier modifier, EquipmentCondition condition) Creates an item attribute with the given values.- Parameters:
type- The attribute typemodifier- The attribute modifiercondition- The equipment condition- Returns:
- The item attribute
-
type
AttributeType type()Returns the attribute type.- Returns:
- The attribute type
-
modifier
AttributeModifier modifier()Returns the attribute modifier.- Returns:
- The attribute modifier
-
condition
EquipmentCondition condition()Returns the equipment condition.- Returns:
- The equipment condition
-