DimensionBuilders.DegreesProp.Builder


public final class DimensionBuilders.DegreesProp.Builder


Builder for DegreesProp

Summary

Public constructors

This method is deprecated.

use Builder

Builder(float staticValue)

Creates an instance of Builder from the given static value.

Public methods

@NonNull DimensionBuilders.DegreesProp

Builds an instance from accumulated values.

@NonNull DimensionBuilders.DegreesProp.Builder
@RequiresSchemaVersion(major = 1, minor = 200)
setDynamicValue(@NonNull DynamicBuilders.DynamicFloat dynamicValue)

Sets the dynamic value, in degrees.

@NonNull DimensionBuilders.DegreesProp.Builder
@RequiresSchemaVersion(major = 1, minor = 0)
setValue(float value)

Sets the static value, in degrees.

Public constructors

Builder

Added in 1.0.0
Deprecated in 1.0.0
public Builder()

Creates an instance of Builder.

Builder

Added in 1.0.0
public Builder(float staticValue)

Creates an instance of Builder from the given static value. setDynamicValue can be used to provide a dynamic value.

Public methods

build

Added in 1.0.0
public @NonNull DimensionBuilders.DegreesProp build()

Builds an instance from accumulated values.

Throws
java.lang.IllegalStateException

if a dynamic value is set using setDynamicValue but neither Builder nor setValue is used to provide a static value.

setDynamicValue

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 200)
public @NonNull DimensionBuilders.DegreesProp.Builder setDynamicValue(@NonNull DynamicBuilders.DynamicFloat dynamicValue)

Sets the dynamic value, in degrees. Note that when setting this value, the static value is still required to be set to support older renderers that only read the static value. If dynamicValue has an invalid result, the provided static value will be used instead.

setValue

Added in 1.0.0
@RequiresSchemaVersion(major = 1, minor = 0)
public @NonNull DimensionBuilders.DegreesProp.Builder setValue(float value)

Sets the static value, in degrees. If a dynamic value is also set and the renderer supports dynamic values for the corresponding field, this static value will be ignored. If the static value is not specified, zero will be used instead.