Describes animation parameters for the future use. Call load or loadCustom to actually launch the animation.
an object containing all the required data about animation
Optionalmaterial?: stringAnimation material, can be used to apply custom materials to the animation.
Optionalmesh?: RenderMeshRenderMesh object to be displayed with animation.
Optionalrender?: numberNumeric ID of the Render object to be displayed with animation. Can be obtained using Render.getId
Optionalscale?: numberAnimation scale.
Optionalskin?: stringName of the texture to be used as render's skin.
Describes item to be used for the animation.
item parameters object
Optionalcount?: numberItem count, will be transform to display an appropriate animation.
Optionaldata?: numberItem data.
Optionalextra?: ItemExtraDataItem extra.
Optionalglint?: booleanWhether the item should be in glint state or not.
Item ID.
Optionalmaterial?: stringShader material name.
OptionalnotIf true, the position of the item will not be randomized.
Optionalrotation?: string | [number, number, number]If string "x" is passed, the item is rotated 90 along x axis, if "z" is passed, the item is rotated 90 along z axis, otherwise the item is rotated according to the rotation array along all the three axes.
Optionalsize?: numberItem/block size.
Optionalskin?: stringSkin name to be used for the render. If no skin is passed, default item skin is used.
Consider using describeItem instead.
Object for current animation's render.
Loads animation in the world registering it as an Updatable.
function to be used as Updatable.update function
Resets all the transformations made via transform calls.
Use setBlockLightPos and related methods instead.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Item animations are used to display items or blocks models in the world.