Class Armature
get() hands out the loaded model, which a resource pack reload replaces.
Armature.of("mymod", "wisp") looks under assets/mymod/armatures/, first for wisp.armature.json (a
definition naming the model, extra animation files, textures, materials, springs and head tracking), then for
wisp.bbmodel (a Blockbench project, with its animations and textures inside it), then for
wisp.geo.json with wisp.animation.json beside it (Bedrock exports, textured by
assets/mymod/textures/armatures/wisp.png). Sub-folders work: Armature.of("mymod", "mobs/wisp").
With no model at all, wisp.animation.json alone is enough: its bones become joints. That suits clips meant
for another model, such as emotes for the vanilla player (see VanillaModels).
With no model at all, wisp.animation.json alone is enough: its bones become joints. That suits clips meant
for another model, such as emotes for the vanilla player (see VanillaModels).
-
Field Details
-
NONE
No model and no clips: an animator that only runs code (modifiers, variables), never logged as missing.
-
-
Method Details
-
of
-
of
-
id
public net.minecraft.resources.Identifier id() -
get
The loaded armature; read on first use and after every resource reload. An armature that can't be loaded is logged once and givesBakedArmature.EMPTY. Client thread only. -
equals
-
hashCode
-
toString
-