Class ScalingAlgorithmMetadata
java.lang.Object
io.artificial.enchantments.api.scaling.ScalingAlgorithmMetadata
Immutable metadata for a registered scaling algorithm.
This class provides read-only information about a scaling algorithm including its name, description, and parameter requirements.
- Since:
- 0.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionScalingAlgorithmMetadata(@NotNull String name, @NotNull String description, int parameterCount, @NotNull String[] parameterNames, boolean builtIn) Creates metadata for a scaling algorithm. -
Method Summary
-
Constructor Details
-
ScalingAlgorithmMetadata
public ScalingAlgorithmMetadata(@NotNull @NotNull String name, @NotNull @NotNull String description, int parameterCount, @NotNull @NotNull String[] parameterNames, boolean builtIn) Creates metadata for a scaling algorithm.- Parameters:
name- the algorithm namedescription- the algorithm descriptionparameterCount- the number of parameters requiredparameterNames- the names of parametersbuiltIn- true if this is a built-in algorithm
-
-
Method Details
-
getName
Gets the algorithm name.- Returns:
- the name
-
getDescription
Gets the algorithm description.- Returns:
- the description
-
getParameterCount
public int getParameterCount()Gets the number of parameters required.- Returns:
- the parameter count
-
getParameterNames
Gets the parameter names.- Returns:
- a copy of the parameter names array
-
isBuiltIn
public boolean isBuiltIn()Checks if this is a built-in algorithm.- Returns:
- true if built-in
-
toString
-