Class BlueprintLoadContext

java.lang.Object
kr.toxicity.model.api.data.blueprint.BlueprintLoadContext

@Internal public final class BlueprintLoadContext extends Object
A context class for loading blueprints.
Since:
3.0.0
  • Method Details

    • name

      @NotNull public @NotNull String name()
      Gets the name of the blueprint.
      Returns:
      the name
      Since:
      3.0.0
    • triangleName

      @NotNull public @NotNull io.github.toxicity188.javamesh.MeshTriangleName triangleName()
      Gets the mesh triangle name.
      Returns:
      the triangle name
      Since:
      3.0.0
    • resolution

      @NotNull public @NotNull ModelResolution resolution()
      Gets the model resolution.
      Returns:
      the resolution
      Since:
      3.0.0
    • texture

      @NotNull public @NotNull BlueprintTexture texture(int index)
      Gets a texture by its index.
      Parameters:
      index - the index
      Returns:
      the texture
      Since:
      3.0.0
    • canBeRendered

      public boolean canBeRendered()
      Returns whether this context can be rendered.
      Returns:
      true if renderable
      Since:
      3.0.0
    • buildImage

      @NotNull public @NotNull Stream<BlueprintImage> buildImage(@NotNull @NotNull PackObfuscator obfuscator)
      Builds a stream of blueprint images using the provided obfuscator.
      Parameters:
      obfuscator - the obfuscator
      Returns:
      a stream of images
      Since:
      3.0.0