RenderSource
Represents a source for rendering models, providing necessary context such as location and entity data.
This interface serves as the entry point for creating Tracker instances, which manage the lifecycle of a rendered model. It supports both entity-based and location-based (dummy) rendering sources.
Since
1.15.2
Parameters
<T>
the type of tracker created by this source
Inheritors
Types
Link copied to clipboard
A basic implementation of Dummy with a location.
Link copied to clipboard
A basic implementation of Entity wrapping a kr.toxicity.model.api.entity.BaseEntity.
Link copied to clipboard
A basic implementation of Entity wrapping a kr.toxicity.model.api.entity.BasePlayer.
Link copied to clipboard
Represents a render source at a fixed location, not attached to an entity.
Link copied to clipboard
Represents a render source attached to an entity.
Link copied to clipboard
A profiled implementation of Dummy with a location and a model profile.
Link copied to clipboard
A profiled implementation of Entity wrapping a kr.toxicity.model.api.entity.BaseEntity and a model profile.
Link copied to clipboard
A profiled implementation of Entity wrapping a kr.toxicity.model.api.entity.BasePlayer and a model profile.
Functions
Link copied to clipboard
Asynchronously completes the bone render context for this source.
Link copied to clipboard
abstract fun create(@NotNull pipeline: @NotNull RenderPipeline, @NotNull modifier: @NotNull TrackerModifier, @NotNull preUpdateConsumer: @NotNull Consumer<T>): T
Creates a new tracker for this render source.
Link copied to clipboard
Returns a fallback bone render context.
Link copied to clipboard
Returns the location of this render source.
Link copied to clipboard
@ApiStatus.Internal
@NotNull
Creates an entity render source for the given entity.
@ApiStatus.Internal
@NotNull
Creates a dummy render source at the specified location.
@ApiStatus.Internal
@NotNull
Creates an entity render source for the given entity with a specific model profile.
@ApiStatus.Internal
@NotNull
Creates a dummy render source at the specified location with a specific model profile.