RenderedBone

A rendered item-display.

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull group: @NotNull RendererGroup, @Nullable parent: @Nullable RenderedBone, @NotNull source: @NotNull RenderSource<out Any>, @NotNull movement: @NotNull BoneMovement, @NotNull modifier: @NotNull TrackerModifier, @NotNull childrenMapper: @NotNull (RenderedBone) -> Map<BoneName, RenderedBone>)
Creates entity.

Functions

Link copied to clipboard
open fun addAnimation(@NotNull filter: @NotNull AnimationPredicate, @NotNull animator: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier, removeTask: Runnable): Boolean
Link copied to clipboard
open fun addPositionModifier(@NotNull predicate: @NotNull Predicate<RenderedBone>, @NotNull function: @NotNull (Vector3f) -> Vector3f): Boolean
Adds position modifier.
Link copied to clipboard
open fun addRotationModifier(@NotNull predicate: @NotNull Predicate<RenderedBone>, @NotNull function: @NotNull (Quaternionf) -> Quaternionf): Boolean
Adds rotation modifier.
Link copied to clipboard
open fun billboard(@NotNull predicate: @NotNull Predicate<RenderedBone>, @NotNull billboard: @NotNull Display.Billboard): Boolean
Apply a billboard to this model.
Link copied to clipboard
@Nullable
open fun boneOf(@NotNull predicate: @NotNull Predicate<RenderedBone>): @Nullable RenderedBone
Gets bone
Link copied to clipboard
open fun brightness(@NotNull predicate: @NotNull Predicate<RenderedBone>, block: Int, sky: Int): Boolean
Link copied to clipboard
open fun createHitBox(@NotNull entity: @NotNull EntityAdapter, @NotNull predicate: @NotNull Predicate<RenderedBone>, @Nullable listener: @Nullable HitBoxListener): Boolean
Creates hit box.
Link copied to clipboard
open fun defaultPosition(@NotNull movement: @NotNull Supplier<Vector3f>)
Link copied to clipboard
open fun enchant(@NotNull predicate: @NotNull Predicate<RenderedBone>, enchant: Boolean): Boolean
Make item has enchantment or not
Link copied to clipboard
open fun <T> findNotNullByTree(@NotNull mapper: @NotNull (RenderedBone) -> T): @Nullable T
Link copied to clipboard
open fun forceUpdate(@NotNull bundler: @NotNull PacketBundler)
open fun forceUpdate(showItem: Boolean, @NotNull bundler: @NotNull PacketBundler)
Link copied to clipboard
@NotNull
open fun getName(): @NotNull BoneName
Link copied to clipboard
open fun glow(@NotNull predicate: @NotNull Predicate<RenderedBone>, glow: Boolean): Boolean
Apply a glow to this model.
Link copied to clipboard
open fun glowColor(@NotNull predicate: @NotNull Predicate<RenderedBone>, glowColor: Int): Boolean
Sets a glow color to this model.
Link copied to clipboard
@NotNull
open fun hitBoxPosition(): @NotNull Vector3f
Gets hit-box position
Link copied to clipboard
@NotNull
open fun hitBoxRotation(): @NotNull ModelRotation
Gets hit-box rotation
Link copied to clipboard
open fun hitBoxScale(): Float
Gets hit-box scale
Link copied to clipboard
@NotNull
open fun hitBoxViewRotation(): @NotNull Quaternionf
Gets hit-box view rotation
Link copied to clipboard
open fun isVisible(): Boolean
Link copied to clipboard
open fun itemStack(@NotNull predicate: @NotNull Predicate<RenderedBone>, @NotNull itemStack: @NotNull TransformedItemStack): Boolean
Changes displayed item
Link copied to clipboard
open fun iterateTree(@NotNull boneConsumer: @NotNull Consumer<RenderedBone>)
Link copied to clipboard
open fun matchTree(@NotNull bonePredicate: @NotNull Predicate<RenderedBone>): Boolean
open fun matchTree(@NotNull predicate: @NotNull AnimationPredicate, @NotNull mapper: @NotNull BiPredicate<RenderedBone, AnimationPredicate>): Boolean
open fun matchTree(@NotNull predicate: @NotNull BonePredicate, @NotNull mapper: @NotNull BiPredicate<RenderedBone, BonePredicate>): Boolean
Link copied to clipboard
open fun moveDuration(duration: Int)
Sets bone's move duration.
Link copied to clipboard
open fun remove(@NotNull bundler: @NotNull PacketBundler)
Removes model's display
Link copied to clipboard
open fun replaceAnimation(@NotNull filter: @NotNull AnimationPredicate, @NotNull target: @NotNull String, @NotNull animator: @NotNull BlueprintAnimation, @NotNull modifier: @NotNull AnimationModifier): Boolean
Link copied to clipboard
open fun rotate(@NotNull rotation: @NotNull ModelRotation, @NotNull bundler: @NotNull PacketBundler): Boolean
Link copied to clipboard
@Nullable
open fun runningAnimation(): @Nullable RunningAnimation
Link copied to clipboard
open fun scale(@NotNull scale: @NotNull FloatSupplier)
Sets the scale of this bone
Link copied to clipboard
open fun spawn(hide: Boolean, @NotNull bundler: @NotNull PacketBundler)
Link copied to clipboard
open fun stopAnimation(@NotNull filter: @NotNull Predicate<RenderedBone>, @NotNull name: @NotNull String): Boolean
Stops bone's animation
Link copied to clipboard
open fun teleport(@NotNull location: @NotNull Location, @NotNull bundler: @NotNull PacketBundler)
Link copied to clipboard
open fun tick(@NotNull bundler: @NotNull PacketBundler): Boolean
Link copied to clipboard
open fun tint(@NotNull predicate: @NotNull Predicate<RenderedBone>, tint: Int): Boolean
Link copied to clipboard
open fun togglePart(@NotNull predicate: @NotNull Predicate<RenderedBone>, toggle: Boolean): Boolean
Toggles some part
Link copied to clipboard
open fun updateItem(@NotNull predicate: @NotNull Predicate<RenderedBone>, @NotNull source: @NotNull RenderSource<out Any>): Boolean
Link copied to clipboard
@NotNull
open fun worldPosition(): @NotNull Vector3f
@NotNull
open fun worldPosition(@NotNull localOffset: @NotNull Vector3f): @NotNull Vector3f
@NotNull
open fun worldPosition(@NotNull localOffset: @NotNull Vector3f, @NotNull globalOffset: @NotNull Vector3f): @NotNull Vector3f
Link copied to clipboard
@NotNull
open fun worldRotation(): @NotNull Quaternionf