Class BlueprintLoadContext
java.lang.Object
kr.toxicity.model.api.data.blueprint.BlueprintLoadContext
A context class for loading blueprints.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescription@NotNull Stream<BlueprintImage> buildImage(@NotNull PackObfuscator obfuscator) Builds a stream of blueprint images using the provided obfuscator.booleanReturns whether this context can be rendered.@NotNull Stringname()Gets the name of the blueprint.@NotNull ModelResolutionGets the model resolution.@NotNull BlueprintTexturetexture(int index) Gets a texture by its index.@NotNull io.github.toxicity188.javamesh.MeshTriangleNameGets the mesh triangle name.
-
Method Details
-
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
Gets the model resolution.- Returns:
- the resolution
- Since:
- 3.0.0
-
texture
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
-