Dummy

Represents a render source at a fixed location, not attached to an entity.

Since

1.15.2

Inheritors

Companion functions

Link copied to clipboard
@ApiStatus.Internal
@NotNull
open fun of(@NotNull entity: @NotNull BaseEntity): RenderSource.Entity
Creates an entity render source for the given entity.
@ApiStatus.Internal
@NotNull
open fun of(@NotNull location: @NotNull PlatformLocation): RenderSource.Dummy
Creates a dummy render source at the specified location.
@ApiStatus.Internal
@NotNull
open fun of(@NotNull entity: @NotNull BaseEntity, @NotNull profile: ModelProfile.Uncompleted): RenderSource.Entity
Creates an entity render source for the given entity with a specific model profile.
@ApiStatus.Internal
@NotNull
open fun of(@NotNull location: @NotNull PlatformLocation, @NotNull profile: ModelProfile.Uncompleted): RenderSource.Dummy
Creates a dummy render source at the specified location with a specific model profile.

Functions

Link copied to clipboard
@NotNull
abstract fun completeContext(): @NotNull CompletableFuture<BoneRenderContext>
Asynchronously completes the bone render context for this source.
Link copied to clipboard
@NotNull
open fun create(@NotNull pipeline: @NotNull RenderPipeline, @NotNull modifier: @NotNull TrackerModifier, @NotNull preUpdateConsumer: @NotNull Consumer<DummyTracker>): @NotNull DummyTracker
Creates a new tracker for this render source.
Link copied to clipboard
Returns a fallback bone render context.
Link copied to clipboard
@NotNull
abstract fun location(): @NotNull PlatformLocation
Returns the location of this render source.