Class FpGeoModel
java.lang.Object
com.github.razorplay01.fp_pal.firstperson.FpGeoModel
Minimal Bedrock geometry (geo.json) model used by
FpModelRenderer to preview an AzureLib
item rig in first person. The conversion matches AzureLib's AzBuiltinBakedModelFactory
(X mirrored on pivots and cube origins, rotations kept raw). Units are model pixels (1/16 block);
the renderer divides by 16.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA bone in the model tree.static final classA baked cuboid. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionintbones()static FpGeoModelParses the first geometry of a Bedrockgeo.jsonfile.intint
-
Field Details
-
FACE_NORTH
public static final int FACE_NORTH- See Also:
-
FACE_EAST
public static final int FACE_EAST- See Also:
-
FACE_SOUTH
public static final int FACE_SOUTH- See Also:
-
FACE_WEST
public static final int FACE_WEST- See Also:
-
FACE_UP
public static final int FACE_UP- See Also:
-
FACE_DOWN
public static final int FACE_DOWN- See Also:
-
-
Method Details
-
textureWidth
public int textureWidth() -
textureHeight
public int textureHeight() -
rootBones
-
bones
-
boneCount
public int boneCount() -
bone
- Returns:
- the bone with the given name, or
null
-
parse
Parses the first geometry of a Bedrockgeo.jsonfile.- Throws:
IllegalArgumentException- if the file is not a geometry
-