create

@NotNull
open fun create(@NotNull location: @NotNull PlatformLocation): @NotNull ModelDisplay

Creates a model display at the specified location.

Return

the created model display

Since

1.15.2

Parameters

location

the starting location


@NotNull
open fun create(@NotNull location: @NotNull PlatformLocation, @NotNull initialConsumer: @NotNull Consumer<ModelDisplay>): @NotNull ModelDisplay

Creates a model display at the specified location with an initial configuration.

Return

the created model display

Since

1.15.2

Parameters

location

the starting location

initialConsumer

a consumer to configure the display upon creation


@NotNull
abstract fun create(@NotNull location: @NotNull PlatformLocation, yOffset: Double, @NotNull initialConsumer: @NotNull Consumer<ModelDisplay>): @NotNull ModelDisplay

Creates a model display at the specified location with a Y-offset and initial configuration.

Return

the created model display

Since

1.15.2

Parameters

location

the starting location

yOffset

the vertical offset

initialConsumer

a consumer to configure the display upon creation