Interface SulfurCubeArchetypeRegistryEntry.AttributeEntry
- Enclosing interface:
SulfurCubeArchetypeRegistryEntry
@Experimental
@NonExtendable
public static interface SulfurCubeArchetypeRegistryEntry.AttributeEntry
An attribute entry to apply to a sulfur cube of this archetype.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the attribute to modify.modifier()Returns the modifier of the given attribute.of(TypedKey<Attribute> attribute, AttributeModifier modifier) Creates a new attribute entry instance based on the passed values.
-
Method Details
-
attribute
-
modifier
AttributeModifier modifier()Returns the modifier of the given attribute.- Returns:
- the modifier of the given attribute
-
of
@Contract(value="_, _ -> new", pure=true) static SulfurCubeArchetypeRegistryEntry.AttributeEntry of(TypedKey<Attribute> attribute, AttributeModifier modifier) Creates a new attribute entry instance based on the passed values.- Parameters:
attribute- the attribute to modify, as returned byattribute()modifier- the modifier of the given attribute, as returned bymodifier()- Returns:
- the created instance
-