EntityTracker

open class EntityTracker : Tracker

Entity tracker

Inheritors

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull entity: Entity, @NotNull instance: RenderInstance, @NotNull modifier: TrackerModifier)
Creates entity 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<RenderedBone>, @NotNull animation: String, modifier: AnimationModifier, removeTask: Runnable): Boolean
Players this animation by loop
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<RenderedBone>, @NotNull animation: String, modifier: AnimationModifier, removeTask: Runnable): Boolean
Players this animation by once
Link copied to clipboard
open fun autoSpawn(): Boolean
Checks this tracker supports auto spawn
open fun autoSpawn(spawn: Boolean)
Sets this tracker is auto-spawned by some player's client
Link copied to clipboard
@Nullable
open fun bone(@NotNull name: String): RenderedBone
Gets bone by bone's name
Link copied to clipboard
@NotNull
open fun bones(): List<RenderedBone>
Gets all bones
Link copied to clipboard
open fun brightness(@NotNull predicate: BonePredicate, block: Int, sky: Int): Boolean
Sets brightness of some model part
Link copied to clipboard
open fun canBeSpawnedAt(@NotNull player: Player): Boolean
Checks this tracker can be spawned at this player's client
Link copied to clipboard
abstract fun close()
open fun close()
Link copied to clipboard
open fun createHitBox(@NotNull predicate: Predicate<RenderedBone>, @NotNull listener: HitBoxListener)
Creates hit-box
Link copied to clipboard
open fun damageTint()
Applies damage tint
Link copied to clipboard
open fun damageTintValue(): Int
Gets damage tint value
open fun damageTintValue(tint: Int)
Sets damage tint value
Link copied to clipboard
open fun despawn()
Despawns this tracker to all players
Link copied to clipboard
@NotNull
open fun displays(): List<ModelDisplay>
Gets all model displays
Link copied to clipboard
open fun forceUpdate(force: Boolean)
Forces packet update.
Link copied to clipboard
@ApiStatus.Internal
open fun forRemoval(): Boolean
Checks this tracker is for removal
@ApiStatus.Internal
open fun forRemoval(removal: Boolean)
Marks this tracker will be removed by future
Link copied to clipboard
open fun frame(@NotNull consumer: BiConsumer<Tracker, PacketBundler>)
Runs consumer on frame.
Link copied to clipboard
open fun height(): Double
Gets tracker model's height
Link copied to clipboard
open fun isClosed(): Boolean
Checks this tracker is closed
Link copied to clipboard
Gets whether this model is playing single animation.
Link copied to clipboard
open fun itemStack(@NotNull predicate: BonePredicate, @NotNull itemStack: TransformedItemStack): Boolean
Sets item of some model part
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 playerCount(): Int
Gets amount of viewed players.
Link copied to clipboard
@ApiStatus.Internal
open fun refresh()
Refresh this tracker
Link copied to clipboard
@ApiStatus.Internal
open fun reload()
Reloads entity tracker
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<RenderedBone>, @NotNull target: String, @NotNull animation: String): Boolean
Replaces some animation by loop
Link copied to clipboard
open fun replaceSingle(@NotNull target: String, @NotNull animation: String): Boolean
open fun replaceSingle(@NotNull filter: Predicate<RenderedBone>, @NotNull target: String, @NotNull animation: String): Boolean
Replaces some animation by once
Link copied to clipboard
@NotNull
open fun rotation(): ModelRotation
Gets model rotation.
Link copied to clipboard
open fun setMovement(movement: Supplier<TrackerMovement>)
Sets tracker movement.
Link copied to clipboard
@NotNull
open fun source(): Entity
Gets source entity
Link copied to clipboard
open fun spawn(@NotNull player: Player)
Spawns this tracker to some player
Link copied to clipboard
open fun spawnNearby()
open fun spawnNearby(@NotNull location: Location)
Spawns this tracker ranged by view distance
Link copied to clipboard
open fun stopAnimation(@NotNull animation: String)
open fun stopAnimation(@NotNull filter: Predicate<RenderedBone>, @NotNull animation: String)
Stops some animation
Link copied to clipboard
open fun tick(@NotNull consumer: BiConsumer<Tracker, PacketBundler>)
Runs consumer on tick.
Link copied to clipboard
open fun tint(rgb: Int)
open fun tint(@NotNull predicate: BonePredicate, rgb: Int)
Toggles red tint of model.
Link copied to clipboard
open fun togglePart(@NotNull predicate: BonePredicate, toggle: Boolean): Boolean
Toggles some part
Link copied to clipboard
@Nullable
open fun tracker(@NotNull uuid: UUID): EntityTracker
Gets tracker
@Nullable
open fun tracker(@NotNull entity: Entity): EntityTracker
Get or creates tracker
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
@NotNull
open fun world(): UUID
Gets world uuid in tracker