ItemAttributeModifiers
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
static builder() as Builder
Return Type:
ItemAttributeModifiersBuilder
compute(baseValue as double, slot as EquipmentSlot) as double
Parameters:
baseValue: double
Type: double
slot: EquipmentSlot
Type: EquipmentSlot
Return Type:
double
forEach(slot as EquipmentSlot, consumer as BiConsumer<Attribute, AttributeModifier>)
Parameters:
slot: EquipmentSlot
Type: EquipmentSlot
consumer: BiConsumer<Attribute, AttributeModifier>
Type: BiConsumer<Attribute, AttributeModifier>
Getter
Return Type:
List<ItemAttributeModifiersEntry>
static of(modifiers as List<Entry>, showInTooltip as bool) as ItemAttributeModifiers
Parameters:
modifiers: List<ItemAttributeModifiersEntry>
Type: List<ItemAttributeModifiersEntry>
showInTooltip: bool
Type: bool
Return Type:
ItemAttributeModifiers
Getter
Return Type:
bool
withModifierAdded(attribute as Attribute, modifier as AttributeModifier, slot as EquipmentSlotGroup) as ItemAttributeModifiers
Parameters:
modifier: AttributeModifier
Type: AttributeModifier
slot: EquipmentSlotGroup
Type: EquipmentSlotGroup
Return Type:
ItemAttributeModifiers
withTooltip(showInTooltip as bool) as ItemAttributeModifiers
Parameters:
showInTooltip: bool
Type: bool
Return Type:
ItemAttributeModifiers