Tracker

abstract class Tracker : AutoCloseable

Tracker of model.

Inheritors

Constructors

Link copied to clipboard
constructor(@NotNull instance: RenderInstance, @NotNull modifier: TrackerModifier)
Tracker

Properties

Link copied to clipboard
val TRACKING_ID: NamespacedKey
Tracker's namespace.

Functions

Link copied to clipboard
open fun animateLoop(@NotNull animation: String): Boolean
open fun animateLoop(@NotNull animation: String, modifier: AnimationModifier): Boolean
open fun animateLoop(@NotNull animation: String, modifier: AnimationModifier, removeTask: Runnable): 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 animation: String, modifier: AnimationModifier, removeTask: Runnable): Boolean
open fun animateSingle(@NotNull filter: Predicate<RenderedEntity>, @NotNull animation: String, modifier: AnimationModifier, removeTask: Runnable): Boolean
Link copied to clipboard
open fun close()
Link copied to clipboard
@NotNull
open fun displays(): List<ModelDisplay>
Link copied to clipboard
@NotNull
open fun entity(): List<RenderedEntity>
@Nullable
open fun entity(@NotNull name: String): RenderedEntity
Link copied to clipboard
open fun height(): Double
Gets tracker model's height
Link copied to clipboard
Gets whether this model is playing single animation.
Link copied to clipboard
@NotNull
abstract fun location(): Location
Gets location of model.
Link copied to clipboard
@NotNull
open fun modifier(): TrackerModifier
Link copied to clipboard
@NotNull
open fun name(): String
Gets tracker name
Link copied to clipboard
open fun remove(@NotNull player: Player)
Removes model from player
Link copied to clipboard
open fun replaceLoop(@NotNull target: String, @NotNull animation: String): Boolean
open fun replaceLoop(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String, @NotNull animation: String): Boolean
Link copied to clipboard
open fun replaceSingle(@NotNull target: String, @NotNull animation: String): Boolean
open fun replaceSingle(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String, @NotNull animation: String): Boolean
Link copied to clipboard
@NotNull
abstract fun rotation(): ModelRotation
Link copied to clipboard
open fun setMovement(movement: Supplier<TrackerMovement>)
Sets tracker movement.
Link copied to clipboard
open fun stopAnimation(@NotNull animation: String)
open fun stopAnimation(@NotNull filter: Predicate<RenderedEntity>, @NotNull animation: String)
Link copied to clipboard
open fun tick(@NotNull consumer: Consumer<Tracker>)
Runs consumer on tick.
Link copied to clipboard
open fun tint(rgb: Int)
Toggles red tint of model.
Link copied to clipboard
open fun togglePart(@NotNull predicate: Predicate<RenderedEntity>, toggle: Boolean)
Link copied to clipboard
@NotNull
abstract fun uuid(): UUID
Gets uuid of model.
Link copied to clipboard
@NotNull
open fun viewedPlayer(): List<Player>
Gets viewed players.
Link copied to clipboard
open fun viewedPlayerSize(): Int
Gets amount of viewed players.