Class SchematicModifier


public class SchematicModifier extends BaseModifier
Represents a placement modifier which is applied to a SchematicSet.

A placement modifier must be added via BrushSettingsRegistry.registerSchematicModifier(SchematicModifier, ModifierProvider) (PlacementModifier, ModifierProvider)}.

A Placement modifier is a key represented by a string

  • Field Details

  • Constructor Details

    • SchematicModifier

      public SchematicModifier(String name, String localizedName, String description, boolean required)
      Creates a new schematic modifier
      Parameters:
      name - name. Defines the type of the modifier
      description - description of the modifier
      required - true if this modifier is required to be set. This will enforce a default value for the modifier.
  • Method Details

    • of

      public static SchematicModifier of(String name, String localizedName, String description, boolean required)
      Creates a new PlacementModifier.
      Parameters:
      name - name of the modifier
      description - description of the modifier
      required - true if this modifier is required to be set. This will enforce a default value for the modifier.
      Returns:
      new PlacementModifier