ItemAttributeModifiersEntry

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.

script.zs
import crafttweaker.api.item.component.ItemAttributeModifiersEntry;

Members

Getter
script.zs
// Entry.attribute as Attribute
myEntry.attribute

Return Type: Attribute

Getter
script.zs
// Entry.modifier as AttributeModifier
myEntry.modifier

Return Type: AttributeModifier

static of(attribute as Attribute, modifier as AttributeModifier, slot as EquipmentSlotGroup) as Entry
script.zs
// Entry.of(attribute as Attribute, modifier as AttributeModifier, slot as EquipmentSlotGroup) as ItemAttributeModifiersEntry;
ItemAttributeModifiersEntry.of(myAttribute, myAttributeModifier, myEquipmentSlotGroup);

Parameters:

Return Type: ItemAttributeModifiersEntry

Getter
script.zs
// Entry.slot as EquipmentSlotGroup
myEntry.slot

Return Type: EquipmentSlotGroup