Class BedrockReader

java.lang.Object
net.ixdarklord.coolcatcanvas.internal.client.armature.io.BedrockReader

public final class BedrockReader extends Object
Reads Bedrock's model and animation files (.geo.json, .animation.json), the ones Blockbench exports and other tools share. Bedrock mirrors the X axis against Blockbench's, so positions and pivots flip X and turns flip their X and Y as they are read; animation values keep Bedrock's axes, as Blockbench's own do.
  • Method Details

    • readGeometry

      public static ArmatureData readGeometry(com.google.gson.JsonObject json, net.minecraft.resources.Identifier file)
      The first model in a geometry file.
    • readAnimations

      public static List<ClipSource> readAnimations(com.google.gson.JsonObject json, net.minecraft.resources.Identifier file)
      Every animation in an animation file.