Index
All Classes and Interfaces|All Packages
A
- asset(String, MeshParseContext.StreamLoader) - Method in class io.github.toxicity188.javamesh.parser.MeshParseContext.Builder
-
Registers a loader for an asset extension used by a parser.
- Awt(BufferedImage) - Constructor for record class io.github.toxicity188.javamesh.MeshImage.Awt
-
Creates an instance of a
Awtrecord class.
B
- build() - Method in class io.github.toxicity188.javamesh.parser.MeshParseContext.Builder
-
Finalizes the parser context.
- builder(String) - Static method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Starts building a parser context for the given mesh asset name.
D
- DOUBLE - Enum constant in enum class io.github.toxicity188.javamesh.MeshFace
-
Uses the double-sided Minecraft triangle model.
- duplex() - Method in record class io.github.toxicity188.javamesh.MeshTriangleName
-
Returns the value of the
duplexrecord component.
E
- EMPTY - Static variable in interface io.github.toxicity188.javamesh.MeshImage
-
Represents the empty image.
- EMPTY - Static variable in record class io.github.toxicity188.javamesh.MeshNamedImage
- equals(Object) - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.toxicity188.javamesh.MeshNamedImage
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.toxicity188.javamesh.MeshPoint
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.toxicity188.javamesh.MeshShape
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.toxicity188.javamesh.MeshTriangleName
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Indicates whether some other object is "equal to" this one.
F
- from(BufferedImage) - Static method in interface io.github.toxicity188.javamesh.MeshImage
-
Wraps an AWT image for use by the mesh conversion pipeline.
G
- get(String) - Method in record class io.github.toxicity188.javamesh.MeshNamedImage
-
Resolves a texture by name and falls back to
MeshImage.EMPTYwhen absent.
H
- hashCode() - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.toxicity188.javamesh.MeshNamedImage
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.toxicity188.javamesh.MeshPoint
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.toxicity188.javamesh.MeshShape
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.toxicity188.javamesh.MeshTriangleName
-
Returns a hash code value for this object.
- hashCode() - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Returns a hash code value for this object.
- height() - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
- height() - Method in interface io.github.toxicity188.javamesh.MeshImage
-
Returns the image height in pixels.
I
- image() - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
-
Returns the value of the
imagerecord component. - image(Map<String, MeshImage>) - Method in class io.github.toxicity188.javamesh.MeshBuilder
-
Registers texture images by resource name so triangle tint colors can be sampled from UVs.
- images() - Method in record class io.github.toxicity188.javamesh.MeshNamedImage
-
Returns the value of the
imagesrecord component. - INSTANCE - Enum constant in enum class io.github.toxicity188.javamesh.parser.obj.ObjParser
-
Singleton instance.
- io.github.toxicity188.javamesh - package io.github.toxicity188.javamesh
- io.github.toxicity188.javamesh.parser - package io.github.toxicity188.javamesh.parser
- io.github.toxicity188.javamesh.parser.obj - package io.github.toxicity188.javamesh.parser.obj
L
- load() - Method in interface io.github.toxicity188.javamesh.parser.MeshParseContext.StreamLoader
-
Opens the asset stream.
- load(MeshShape, MeshFace) - Method in class io.github.toxicity188.javamesh.MeshBuilder
-
Loads a single shape using the specified triangle face type.
- load(MeshParseResult) - Method in class io.github.toxicity188.javamesh.MeshBuilder
-
Loads parsed mesh data into this builder.
- load(List<MeshShape>) - Method in class io.github.toxicity188.javamesh.MeshBuilder
-
Loads polygon shapes and infers whether each shape should use a single-sided or double-sided triangle model.
- loaders() - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Returns the value of the
loadersrecord component. - loadExtension(String) - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Opens the stream registered for the given extension.
- loadExtensionOrNull(String) - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Opens the stream registered for the given extension when available.
M
- matrixModifier(Consumer<Matrix4f>) - Method in class io.github.toxicity188.javamesh.MeshBuilder
-
Registers a callback that can mutate each triangle transform before JSON serialization.
- MeshBuilder - Class in io.github.toxicity188.javamesh
-
Builds Minecraft resource-pack model JSON from parsed mesh polygons.
- MeshFace - Enum Class in io.github.toxicity188.javamesh
-
Selects the triangle template used when converting mesh polygons into Minecraft models.
- MeshImage - Interface in io.github.toxicity188.javamesh
-
Abstraction over texture image access used while sampling triangle tint colors from UV coordinates.
- MeshImage.Awt - Record Class in io.github.toxicity188.javamesh
-
BufferedImage-backedMeshImageimplementation. - MeshNamedImage - Record Class in io.github.toxicity188.javamesh
-
Stores mesh textures by name so parsed material references can be resolved during conversion.
- MeshNamedImage(Map<String, MeshImage>) - Constructor for record class io.github.toxicity188.javamesh.MeshNamedImage
-
Creates an instance of a
MeshNamedImagerecord class. - MeshParseContext - Record Class in io.github.toxicity188.javamesh.parser
-
Input configuration for mesh parsers.
- MeshParseContext(String, float, Map<String, MeshParseContext.StreamLoader>) - Constructor for record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Creates an instance of a
MeshParseContextrecord class. - MeshParseContext.Builder - Class in io.github.toxicity188.javamesh.parser
-
Fluent builder for
MeshParseContext. - MeshParseContext.StreamLoader - Interface in io.github.toxicity188.javamesh.parser
-
Opens an asset stream used by a mesh parser.
- MeshParser - Interface in io.github.toxicity188.javamesh.parser
-
Parses mesh source assets into polygon data that can later be serialized as Minecraft models.
- MeshParseResult - Interface in io.github.toxicity188.javamesh.parser
-
Parsed mesh data represented as polygons ready for triangulation.
- MeshPoint - Record Class in io.github.toxicity188.javamesh
-
Vertex data for a mesh polygon, including model-space position and texture UV coordinates.
- MeshPoint(Vector3f) - Constructor for record class io.github.toxicity188.javamesh.MeshPoint
-
Creates a point with zero UV coordinates.
- MeshPoint(Vector3f, Vector2f) - Constructor for record class io.github.toxicity188.javamesh.MeshPoint
-
Creates an instance of a
MeshPointrecord class. - MeshShape - Record Class in io.github.toxicity188.javamesh
-
Polygon data extracted from a mesh source before conversion into Minecraft triangle models.
- MeshShape(List<MeshPoint>, String) - Constructor for record class io.github.toxicity188.javamesh.MeshShape
-
Validates polygon data for mesh conversion.
- MeshTriangleName - Record Class in io.github.toxicity188.javamesh
-
Holds the Minecraft model ids used for generated triangle elements.
- MeshTriangleName(String, String) - Constructor for record class io.github.toxicity188.javamesh.MeshTriangleName
-
Creates an instance of a
MeshTriangleNamerecord class.
N
- name() - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Returns the value of the
namerecord component.
O
- ObjParser - Enum Class in io.github.toxicity188.javamesh.parser.obj
-
OBJ and MTL parser that converts Wavefront mesh assets into polygons for Minecraft model generation.
- of(MeshPoint...) - Static method in record class io.github.toxicity188.javamesh.MeshShape
-
Creates an untextured polygon from the provided points.
- of(MeshTriangleName) - Static method in class io.github.toxicity188.javamesh.MeshBuilder
-
Creates a builder configured with the model ids used for single-sided and double-sided triangles.
- of(String, String) - Static method in record class io.github.toxicity188.javamesh.MeshTriangleName
-
Creates a record holding the model ids for single-sided and double-sided triangles.
P
- parse(MeshParseContext) - Method in interface io.github.toxicity188.javamesh.parser.MeshParser
-
Parses mesh assets described by the provided context.
- parse(MeshParseContext) - Method in enum class io.github.toxicity188.javamesh.parser.obj.ObjParser
-
Parses OBJ geometry and optional MTL material bindings into mesh polygons.
- points() - Method in record class io.github.toxicity188.javamesh.MeshShape
-
Returns the value of the
pointsrecord component. - position() - Method in record class io.github.toxicity188.javamesh.MeshPoint
-
Returns the value of the
positionrecord component.
R
- rgb(int, int) - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
- rgb(int, int) - Method in interface io.github.toxicity188.javamesh.MeshImage
-
Returns the ARGB color of a texture pixel.
S
- scale() - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Returns the value of the
scalerecord component. - scale(float) - Method in class io.github.toxicity188.javamesh.parser.MeshParseContext.Builder
-
Sets the global mesh scale applied during parsing.
- single() - Method in record class io.github.toxicity188.javamesh.MeshTriangleName
-
Returns the value of the
singlerecord component. - SINGLE - Enum constant in enum class io.github.toxicity188.javamesh.MeshFace
-
Uses the single-sided Minecraft triangle model.
T
- texture() - Method in record class io.github.toxicity188.javamesh.MeshShape
-
Returns the value of the
texturerecord component. - toJson() - Method in class io.github.toxicity188.javamesh.MeshBuilder
-
Serializes the loaded mesh into Minecraft composite model JSON.
- toShape() - Method in interface io.github.toxicity188.javamesh.parser.MeshParseResult
-
Returns the parsed polygons extracted from the mesh source.
- toString() - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.toxicity188.javamesh.MeshNamedImage
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.toxicity188.javamesh.MeshPoint
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.toxicity188.javamesh.MeshShape
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.toxicity188.javamesh.MeshTriangleName
-
Returns a string representation of this record class.
- toString() - Method in record class io.github.toxicity188.javamesh.parser.MeshParseContext
-
Returns a string representation of this record class.
U
- uv() - Method in record class io.github.toxicity188.javamesh.MeshPoint
-
Returns the value of the
uvrecord component.
V
- valueOf(String) - Static method in enum class io.github.toxicity188.javamesh.MeshFace
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class io.github.toxicity188.javamesh.parser.obj.ObjParser
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class io.github.toxicity188.javamesh.MeshFace
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class io.github.toxicity188.javamesh.parser.obj.ObjParser
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- width() - Method in record class io.github.toxicity188.javamesh.MeshImage.Awt
- width() - Method in interface io.github.toxicity188.javamesh.MeshImage
-
Returns the image width in pixels.
All Classes and Interfaces|All Packages