PlayerTracker

Constructors

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

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 autoSpawn(): Boolean
open fun autoSpawn(spawn: Boolean)
Link copied to clipboard
open fun brightness(@NotNull predicate: Predicate<RenderedEntity>, block: Int, sky: Int)
Link copied to clipboard
abstract fun close()
open fun close()
Link copied to clipboard
open fun createHitBox()
open fun createHitBox(@NotNull predicate: Predicate<RenderedEntity>)
open fun createHitBox(@NotNull predicate: Predicate<RenderedEntity>, @NotNull listener: HitBoxListener)
Link copied to clipboard
open fun damageTint()
Link copied to clipboard
open fun damageTintValue(): Int
open fun damageTintValue(tint: Int)
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 forceUpdate(force: Boolean)
Forces packet update.
Link copied to clipboard
open fun forRemoval(): Boolean
open fun forRemoval(removal: Boolean)
Link copied to clipboard
open fun frame(@NotNull consumer: Consumer<Tracker>)
Runs consumer on frame.
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
open fun itemStack(@NotNull predicate: Predicate<RenderedEntity>, @NotNull itemStack: TransformedItemStack)
Link copied to clipboard
@NotNull
open 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 refresh()
Link copied to clipboard
open fun reload()
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 replaceModifier(@NotNull filter: Predicate<RenderedEntity>, @NotNull function: (AnimationModifier) -> AnimationModifier)
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
open fun rotation(): ModelRotation
Link copied to clipboard
open fun setMovement(movement: Supplier<TrackerMovement>)
Sets tracker movement.
Link copied to clipboard
open fun spawn(@NotNull player: Player)
Link copied to clipboard
open fun spawnNearby(@NotNull location: Location)
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)
open fun tint(@NotNull predicate: Predicate<RenderedEntity>, rgb: Int)
Toggles red tint of model.
Link copied to clipboard
open fun togglePart(@NotNull predicate: Predicate<RenderedEntity>, toggle: Boolean)
Link copied to clipboard
@Nullable
open fun tracker(@NotNull uuid: UUID): EntityTracker
@Nullable
open fun tracker(@NotNull entity: Entity): EntityTracker
Link copied to clipboard
@NotNull
open fun trackers(@NotNull predicate: Predicate<EntityTracker>): List<EntityTracker>
Link copied to clipboard
@NotNull
open fun uuid(): UUID
Gets uuid of model.
Link copied to clipboard
@NotNull
open fun viewedPlayer(): Stream<Player>
Gets viewed players.
Link copied to clipboard
open fun viewedPlayerSize(): Int
Gets amount of viewed players.
Link copied to clipboard
@NotNull
open fun world(): UUID