Class MeshBakedGeometry
java.lang.Object
net.minecraft.client.render.model.BakedGeometry
net.fabricmc.fabric.api.renderer.v1.model.MeshBakedGeometry
A special
BakedGeometry
which hides a Mesh
instead of using BakedQuad
s. Useful for custom
implementations of Geometry.bake(ModelTextures, Baker, ModelBakeSettings, SimpleModel)
that want to return a
mesh. Instances of this class always return empty lists from inherited methods.
Any code that interacts with BakedGeometry
should first check instanceof MeshBakedGeometry
and use
getMesh()
if true
or the vanilla methods otherwise.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.render.model.BakedGeometry
BakedGeometry.Builder
-
Field Summary
Fields inherited from class net.minecraft.client.render.model.BakedGeometry
EMPTY
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.client.render.model.BakedGeometry
getAllQuads, getQuads
-
Constructor Details
-
MeshBakedGeometry
-
-
Method Details
-
getMesh
Gets this geometry's mesh. Always use this method instead of vanilla methods when available.
-