Interface MeshParser

All Known Implementing Classes:
ObjParser

public interface MeshParser
Parses mesh source assets into polygon data that can later be serialized as Minecraft models.

 MeshParseResult result = kr.toxicity.library.javamesh.parser.obj.ObjParser.INSTANCE.parse(context);
 
Since:
0.0.1
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(@NotNull MeshParseContext context)
    Parses mesh assets described by the provided context.
  • Method Details

    • parse

      @NotNull @NotNull MeshParseResult parse(@NotNull @NotNull MeshParseContext context) throws IOException
      Parses mesh assets described by the provided context.
      Parameters:
      context - parser input context
      Returns:
      parsed polygon data
      Throws:
      IOException - if the parser cannot read one of the source assets
      Since:
      0.0.1