Package kr.toxicity.model.api.tracker
Interface ModelScaler.Getter
- Enclosing interface:
ModelScaler
public static interface ModelScaler.Getter
Functional interface for calculating scale.
- Since:
- 1.15.2
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ModelScaler.GetterDefault getter returning 1.0.static final ModelScaler.GetterGetter using entity scale. -
Method Summary
Modifier and TypeMethodDescriptionfloatCalculates the scale.static @NotNull ModelScaler.Gettervalue(float value) Creates a constant value getter.
-
Field Details
-
DEFAULT
Default getter returning 1.0.- Since:
- 1.15.2
-
ENTITY
Getter using entity scale.- Since:
- 1.15.2
-
-
Method Details
-
get
Calculates the scale.- Parameters:
tracker- the tracker- Returns:
- the scale
- Since:
- 1.15.2
-
value
Creates a constant value getter.- Parameters:
value- the value- Returns:
- the getter
- Since:
- 1.15.2
-