Interface SulfurCubeArchetypeRegistryEntry.AttributeEntry

Enclosing interface:
SulfurCubeArchetypeRegistryEntry

@NonExtendable public static interface SulfurCubeArchetypeRegistryEntry.AttributeEntry
An attribute entry to apply to a sulfur cube of this archetype.
Since:
26.2
  • Method Details

    • attribute

      TypedKey<Attribute> attribute()
      Returns the attribute to modify.
      Returns:
      the attribute to modify
      Since:
      26.2
    • modifier

      AttributeModifier modifier()
      Returns the modifier of the given attribute.
      Returns:
      the modifier of the given attribute
      Since:
      26.2
    • 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 by attribute()
      modifier - the modifier of the given attribute, as returned by modifier()
      Returns:
      the created instance
      Since:
      26.2