Interface ModelScaler.Getter

Enclosing interface:
ModelScaler

public static interface ModelScaler.Getter
Functional interface for calculating scale.
Since:
1.15.2
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ModelScaler.Getter
    Default getter returning 1.0.
    static final ModelScaler.Getter
    Getter using entity scale.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    get(@NotNull Tracker tracker)
    Calculates the scale.
    static @NotNull ModelScaler.Getter
    value(float value)
    Creates a constant value getter.
  • Field Details

    • DEFAULT

      static final ModelScaler.Getter DEFAULT
      Default getter returning 1.0.
      Since:
      1.15.2
    • ENTITY

      static final ModelScaler.Getter ENTITY
      Getter using entity scale.
      Since:
      1.15.2
  • Method Details

    • get

      float get(@NotNull @NotNull Tracker tracker)
      Calculates the scale.
      Parameters:
      tracker - the tracker
      Returns:
      the scale
      Since:
      1.15.2
    • value

      @NotNull static @NotNull ModelScaler.Getter value(float value)
      Creates a constant value getter.
      Parameters:
      value - the value
      Returns:
      the getter
      Since:
      1.15.2