DummyTracker

No tracking tracker.

Constructors

Link copied to clipboard
constructor(@NotNull location: @NotNull Location, @NotNull pipeline: @NotNull RenderPipeline, @NotNull modifier: @NotNull TrackerModifier, @NotNull preUpdateConsumer: @NotNull Consumer<DummyTracker>)
Dummy tracker.

Properties

Link copied to clipboard
Multiplier value for convert tracker tick to minecraft tick
Link copied to clipboard
Tracker tick interval

Functions

Link copied to clipboard
open fun animate(@NotNull animation: @NotNull String): Boolean
open fun animate(@NotNull animation: @NotNull String, modifier: AnimationModifier): Boolean
open fun animate(@NotNull animation: @NotNull String, modifier: AnimationModifier, removeTask: Runnable): Boolean
open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier, @NotNull removeTask: @NotNull Runnable): Boolean
open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier, @NotNull eventHandler: @NotNull AnimationEventHandler): Boolean
open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier, @NotNull removeTask: @NotNull Runnable): Boolean
open fun animate(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier, @NotNull eventHandler: @NotNull AnimationEventHandler): Boolean
Players this animation by once
Link copied to clipboard
@Nullable
open fun bone(@NotNull name: @NotNull String): @Nullable RenderedBone
@Nullable
open fun bone(@NotNull predicate: @NotNull Predicate<RenderedBone>): @Nullable RenderedBone
@Nullable
open fun bone(@NotNull name: @NotNull BoneName): @Nullable RenderedBone
Gets bone by bone's name
Link copied to clipboard
@NotNull
@Unmodifiable
open fun bones(): @NotNull @Unmodifiable Collection<RenderedBone>
Gets all bones
Link copied to clipboard
abstract fun close()
open fun close()
Link copied to clipboard
open fun createHitBox(@NotNull entity: @NotNull EntityAdapter, @Nullable listener: @Nullable HitBoxListener, @NotNull predicate: @NotNull BonePredicate): Boolean
Creates hitbox based on some entity
Link copied to clipboard
open fun createNametag(@NotNull predicate: @NotNull BonePredicate, @NotNull consumer: @NotNull BiConsumer<RenderedBone, ModelNametag>): Boolean
Creates nametag
Link copied to clipboard
open fun despawn()
Despawns this tracker to all players
Link copied to clipboard
@NotNull
open fun displays(): @NotNull Stream<ModelDisplay>
Gets all model displays
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun forceUpdate(force: Boolean): 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 future will remove this tracker
Link copied to clipboard
open fun frame(@NotNull handler: @NotNull Tracker.ScheduledPacketHandler)
Runs consumer on frame.
Link copied to clipboard
open fun handleCloseEvent(@NotNull consumer: @NotNull BiConsumer<Tracker, Tracker.CloseReason>)
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun height(): Double
Gets tracker model's height
Link copied to clipboard
open fun hide(@NotNull player: @NotNull Player): Boolean
Hides this tracker to some player
Link copied to clipboard
@Nullable
open fun hitbox(@NotNull entity: @NotNull EntityAdapter, @Nullable listener: @Nullable HitBoxListener, @NotNull predicate: @NotNull Predicate<RenderedBone>): @Nullable HitBox
Get or creates model's hitbox
Link copied to clipboard
open fun isClosed(): Boolean
Checks this tracker is closed
Link copied to clipboard
open fun isHide(@NotNull player: @NotNull Player): Boolean
Checks this player is marked as hide
Link copied to clipboard
open fun isScheduled(): Boolean
Returns this model is being scheduled.
Link copied to clipboard
open fun isSpawned(@NotNull uuid: @NotNull UUID): Boolean
open fun isSpawned(@NotNull player: @NotNull Player): Boolean
Checks this player is spawned in this tracker
Link copied to clipboard
@NotNull
open fun location(): @NotNull Location
Gets location.
open fun location(@NotNull location: @NotNull Location)
Moves model to another location.
Link copied to clipboard
@NotNull
open fun modifier(): @NotNull TrackerModifier
Gets tracker modifier
Link copied to clipboard
@NotNull
open fun name(): @NotNull String
Gets tracker name
Link copied to clipboard
open fun pause(pause: Boolean): Boolean
Pauses this tracker's tick
Link copied to clipboard
open fun perPlayerTick(@NotNull perPlayerHandler: @NotNull BiConsumer<Tracker, Player>)
Runs consumer on tick per player.
Link copied to clipboard
open fun playerCount(): Int
Gets number of viewed players.
Link copied to clipboard
open fun remove(@NotNull player: @NotNull Player): Boolean
Removes model from player
Link copied to clipboard
@NotNull
open fun renderer(): @NotNull ModelRenderer
Gets the renderer of this tracker
Link copied to clipboard
open fun replace(@NotNull target: @NotNull String, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier): Boolean
open fun replace(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull target: @NotNull String, @NotNull animation: @NotNull String, @NotNull modifier: @NotNull AnimationModifier): Boolean
open fun replace(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull target: @NotNull String, @NotNull animation: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier): Boolean
Replaces some animation by loop
Link copied to clipboard
@NotNull
open fun rotation(): @NotNull ModelRotation
Gets model rotation.
fun rotation(@NotNull supplier: @NotNull Supplier<ModelRotation>)
Link copied to clipboard
fun rotator(@NotNull rotator: @NotNull ModelRotator)
Link copied to clipboard
@NotNull
open fun scaler(): @NotNull ModelScaler
open fun scaler(@NotNull scaler: @NotNull ModelScaler)
Link copied to clipboard
open fun schedule(period: Long, @NotNull handler: @NotNull Tracker.ScheduledPacketHandler)
Schedules some task.
Link copied to clipboard
open fun show(@NotNull player: @NotNull Player): Boolean
Shows this tracker to some player
Link copied to clipboard
open fun spawn(@NotNull player: @NotNull Player)
Spawns model to some player
Link copied to clipboard
open fun stopAnimation(@NotNull animation: @NotNull String): Boolean
open fun stopAnimation(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull String): Boolean
open fun stopAnimation(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull animation: @NotNull String, @Nullable player: @Nullable Player): Boolean
Stops some animation
Link copied to clipboard
open fun task(@NotNull runnable: @NotNull Runnable)
Register this task on next tick
Link copied to clipboard
open fun tick(@NotNull handler: @NotNull Tracker.ScheduledPacketHandler)
open fun tick(tick: Long, @NotNull handler: @NotNull Tracker.ScheduledPacketHandler)
Runs consumer on tick.
Link copied to clipboard
open fun tint(rgb: Int)
open fun tint(@NotNull predicate: @NotNull BonePredicate, rgb: Int): Boolean
Toggles red tint of a model.
Link copied to clipboard
open fun tryUpdate(@NotNull action: @NotNull BiPredicate<RenderedBone, BonePredicate>, @NotNull predicate: @NotNull BonePredicate): Boolean
Update data of this tracker.
Link copied to clipboard
open fun <T : TrackerUpdateAction?> update(@NotNull action: @NotNull T)
open fun <T : TrackerUpdateAction?> update(@NotNull action: @NotNull T, @NotNull predicate: @NotNull Predicate<RenderedBone>)
open fun <T : TrackerUpdateAction?> update(@NotNull action: @NotNull T, @NotNull predicate: @NotNull BonePredicate)
Forces update of this tracker.
Link copied to clipboard
@NotNull
open fun viewedPlayer(): @NotNull Stream<Player>
Gets viewed players.