RenderedEntity

A rendered item-display.

Constructors

Link copied to clipboard
constructor(@NotNull group: RendererGroup, @Nullable parent: RenderedEntity, @Nullable itemStack: ItemStack, @NotNull transform: ItemDisplay.ItemDisplayTransform, @NotNull firstLocation: Location, @NotNull movement: EntityMovement)
Creates entity.

Functions

Link copied to clipboard
open fun addAnimationMovementModifier(@NotNull predicate: Predicate<RenderedEntity>, @NotNull consumer: Consumer<AnimationMovement>): Boolean
Adds animation modifier.
Link copied to clipboard
open fun addLoop(@NotNull filter: Predicate<RenderedEntity>, @NotNull parent: String, @NotNull animator: BlueprintAnimation, modifier: AnimationModifier, removeTask: Runnable)
Link copied to clipboard
open fun addSingle(@NotNull filter: Predicate<RenderedEntity>, @NotNull parent: String, @NotNull animator: BlueprintAnimation, modifier: AnimationModifier, removeTask: Runnable)
Link copied to clipboard
open fun close()
Link copied to clipboard
@ApiStatus.Internal
open fun createHitBox(@NotNull entity: EntityAdapter, @NotNull predicate: Predicate<RenderedEntity>, @Nullable listener: HitBoxListener)
Creates hit box.
Link copied to clipboard
open fun defaultPosition(@NotNull movement: Vector3f)
Link copied to clipboard
open fun forceUpdate(@NotNull bundler: PacketBundler)
Link copied to clipboard
@NotNull
open fun getName(): String
Link copied to clipboard
@NotNull
open fun hitBoxPosition(): Vector3f
Link copied to clipboard
@NotNull
open fun hitBoxRotation(): ModelRotation
Link copied to clipboard
@NotNull
open fun itemStack(): ItemStack

@ApiStatus.Internal
open fun itemStack(@NotNull predicate: Predicate<RenderedEntity>, @NotNull itemStack: ItemStack)
Changes displayed item
Link copied to clipboard
open fun lastMovement(@NotNull movement: TrackerMovement)
Link copied to clipboard
@NotNull
open fun lastTransform(): Vector3f
@NotNull
open fun lastTransform(@NotNull offset: Vector3f): Vector3f
Link copied to clipboard
open fun move(@Nullable rotation: ModelRotation, @NotNull movement: TrackerMovement, @NotNull bundler: PacketBundler)
Link copied to clipboard
open fun remove(@NotNull bundler: PacketBundler)
Link copied to clipboard
@ApiStatus.Internal
open fun renderers(renderers: List<RenderedEntity>)
Adds all renderers to list.
Link copied to clipboard
open fun replaceLoop(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String, @NotNull parent: String, @NotNull animator: BlueprintAnimation)
Link copied to clipboard
open fun replaceSingle(@NotNull filter: Predicate<RenderedEntity>, @NotNull target: String, @NotNull parent: String, @NotNull animator: BlueprintAnimation)
Link copied to clipboard
open fun setup(@NotNull movement: TrackerMovement)
Link copied to clipboard
open fun spawn(@NotNull bundler: PacketBundler)
Link copied to clipboard
open fun stopAnimation(@NotNull filter: Predicate<RenderedEntity>, @NotNull parent: String)
Link copied to clipboard
open fun teleport(@NotNull location: Location, @NotNull bundler: PacketBundler)
Link copied to clipboard
open fun tint(toggle: Int, @NotNull bundler: PacketBundler)
Link copied to clipboard
open fun togglePart(@NotNull bundler: PacketBundler, @NotNull predicate: Predicate<RenderedEntity>, toggle: Boolean)
Link copied to clipboard
open fun updateAnimation()