RenderInstance

@ApiStatus.Internal
class RenderInstance : AutoCloseable

A manager of each tracker.

Constructors

Link copied to clipboard
constructor(@NotNull parent: BlueprintRenderer, @NotNull entityMap: Map<String, RenderedEntity>, @NotNull animationMap: Map<String, BlueprintAnimation>)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun animateLoop(@NotNull animation: String): Boolean
open fun animateLoop(@NotNull animation: String, modifier: AnimationModifier): Boolean
open fun animateLoop(@NotNull filter: Predicate<RenderedEntity>, @NotNull animation: String, modifier: AnimationModifier, removeTask: Runnable): Boolean
Link copied to clipboard
open fun animateSingle(@NotNull animation: String): Boolean
open fun animateSingle(@NotNull animation: String, modifier: AnimationModifier): Boolean
open fun animateSingle(@NotNull filter: Predicate<RenderedEntity>, @NotNull animation: String, modifier: AnimationModifier, removeTask: Runnable): Boolean
Link copied to clipboard
open fun brightness(@NotNull predicate: Predicate<RenderedEntity>, block: Int, sky: Int)
Link copied to clipboard
open fun close()
Link copied to clipboard
open fun createHitBox(@NotNull entity: EntityAdapter, @NotNull predicate: Predicate<RenderedEntity>, @Nullable listener: HitBoxListener)
Link copied to clipboard
open fun defaultPosition(@NotNull movement: Vector3f)
Link copied to clipboard
open fun filter(@NotNull filter: Predicate<Player>)
Link copied to clipboard
open fun forceUpdate(@NotNull bundler: PacketBundler)
Link copied to clipboard
open fun height(): Double
Link copied to clipboard
open fun itemStack(@NotNull predicate: Predicate<RenderedEntity>, @NotNull itemStack: TransformedItemStack)
Link copied to clipboard
open fun move(@Nullable rotation: ModelRotation, @NotNull movement: TrackerMovement, @NotNull bundler: PacketBundler)
Link copied to clipboard
open fun remove(@NotNull player: Player)
Link copied to clipboard
@NotNull
open fun renderers(): List<RenderedEntity>
Link copied to clipboard
open fun replaceLoop(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String, @NotNull animation: String): Boolean
Link copied to clipboard
open fun replaceModifier(@NotNull filter: Predicate<RenderedEntity>, @NotNull function: (AnimationModifier) -> AnimationModifier)
Link copied to clipboard
open fun replaceSingle(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String, @NotNull animation: String): Boolean
Link copied to clipboard
open fun spawn(@NotNull player: Player, @NotNull bundler: PacketBundler)
Link copied to clipboard
@NotNull
open fun spawnFilter(): Predicate<Player>
open fun spawnFilter(@NotNull spawnFilter: Predicate<Player>)
Link copied to clipboard
open fun stopAnimation(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String)
Link copied to clipboard
open fun teleport(@NotNull location: Location, @NotNull bundler: PacketBundler)
Link copied to clipboard
open fun tint(@NotNull predicate: Predicate<RenderedEntity>, rgb: Int)
Link copied to clipboard
open fun togglePart(@NotNull predicate: Predicate<RenderedEntity>, toggle: Boolean)
Link copied to clipboard
@NotNull
open fun viewedPlayer(): Stream<Player>
@NotNull
open fun viewedPlayer(@NotNull predicate: Predicate<Player>): Stream<Player>
Link copied to clipboard
open fun viewedPlayerSize(): Int