RenderedBone

A rendered item-display.

Constructors

Link copied to clipboard
@ApiStatus.Internal
constructor(@NotNull group: RendererGroup, @Nullable parent: RenderedBone, @NotNull itemStack: TransformedItemStack, @NotNull transform: ItemDisplay.ItemDisplayTransform, @NotNull firstLocation: Location, @NotNull movement: BoneMovement, @NotNull modifier: TrackerModifier)
Creates entity.

Functions

Link copied to clipboard
@ApiStatus.Internal
open fun addAnimationMovementModifier(@NotNull predicate: BonePredicate, @NotNull consumer: Consumer<AnimationMovement>): Boolean
Adds animation modifier.
Link copied to clipboard
@ApiStatus.Internal
open fun addLoop(@NotNull filter: Predicate<RenderedBone>, @NotNull parent: String, @NotNull animator: BlueprintAnimation, modifier: AnimationModifier, removeTask: Runnable)
Link copied to clipboard
@ApiStatus.Internal
open fun addSingle(@NotNull filter: Predicate<RenderedBone>, @NotNull parent: String, @NotNull animator: BlueprintAnimation, modifier: AnimationModifier, removeTask: Runnable)
Link copied to clipboard
@ApiStatus.Internal
@Nullable
open fun boneOf(@NotNull predicate: Predicate<RenderedBone>): RenderedBone
Gets bone
Link copied to clipboard
@ApiStatus.Internal
open fun brightness(@NotNull predicate: BonePredicate, block: Int, sky: Int): Boolean
Link copied to clipboard
@ApiStatus.Internal
open fun createHitBox(@NotNull entity: EntityAdapter, @NotNull predicate: Predicate<RenderedBone>, @Nullable listener: HitBoxListener)
Creates hit box.
Link copied to clipboard
@ApiStatus.Internal
open fun defaultPosition(@NotNull movement: Vector3f)
Link copied to clipboard
open fun despawn()
Link copied to clipboard
@ApiStatus.Internal
open fun forceUpdate(@NotNull bundler: PacketBundler)
Link copied to clipboard
@NotNull
open fun getName(): String
Link copied to clipboard
@NotNull
open fun hitBoxPosition(): Vector3f
Gets hit-box position
Link copied to clipboard
@NotNull
open fun hitBoxRotation(): ModelRotation
Gets hit-box rotation
Link copied to clipboard
@ApiStatus.Internal
open fun itemStack(@NotNull predicate: BonePredicate, @NotNull itemStack: TransformedItemStack): Boolean
Changes displayed item
Link copied to clipboard
@ApiStatus.Internal
open fun move(@Nullable rotation: ModelRotation, @NotNull movement: TrackerMovement, @NotNull bundler: PacketBundler)
Link copied to clipboard
@ApiStatus.Internal
open fun remove(@NotNull bundler: PacketBundler)
Removes model's display
Link copied to clipboard
@ApiStatus.Internal
open fun renderers(renderers: List<RenderedBone>)
Adds all renderers to list.
Link copied to clipboard
@ApiStatus.Internal
open fun replaceLoop(@NotNull filter: Predicate<RenderedBone>, @NotNull target: String, @NotNull parent: String, @NotNull animator: BlueprintAnimation)
Link copied to clipboard
@ApiStatus.Internal
open fun replaceSingle(@NotNull filter: Predicate<RenderedBone>, @NotNull target: String, @NotNull parent: String, @NotNull animator: BlueprintAnimation)
Link copied to clipboard
@ApiStatus.Internal
open fun spawn(@NotNull bundler: PacketBundler)
Link copied to clipboard
@ApiStatus.Internal
open fun stopAnimation(@NotNull filter: Predicate<RenderedBone>, @NotNull parent: String)
Stops bone's animation
Link copied to clipboard
@ApiStatus.Internal
open fun teleport(@NotNull location: Location, @NotNull bundler: PacketBundler)
Link copied to clipboard
@ApiStatus.Internal
open fun tint(@NotNull predicate: BonePredicate, tint: Int): Boolean
Link copied to clipboard
@ApiStatus.Internal
open fun togglePart(@NotNull predicate: BonePredicate, toggle: Boolean): Boolean
Toggles some part
Link copied to clipboard
@NotNull
open fun worldPosition(): Vector3f
@NotNull
open fun worldPosition(@NotNull offset: Vector3f): Vector3f