Package | Description |
---|---|
net.fabricmc.fabric.api.renderer.v1.mesh | |
net.fabricmc.fabric.api.renderer.v1.render |
Modifier and Type | Interface and Description |
---|---|
interface |
QuadEmitter
Specialized
MutableQuadView obtained via MeshBuilder.getEmitter()
to append quads during mesh building. |
Modifier and Type | Method and Description |
---|---|
MutableQuadView |
MutableQuadView.colorIndex(int colorIndex)
Value functions identically to
BakedQuad.getColorIndex() and is
used by renderer / model builder in same way. |
MutableQuadView |
MutableQuadView.cullFace(net.minecraft.util.math.Direction face)
If non-null, quad is coplanar with a block face which, if known, simplifies
or shortcuts geometric analysis that might otherwise be needed.
|
MutableQuadView |
MutableQuadView.fromVanilla(int[] quadData,
int startIndex,
boolean isItem)
Enables bulk vertex data transfer using the standard Minecraft vertex formats.
|
MutableQuadView |
MutableQuadView.lightmap(int vertexIndex,
int lightmap)
Accept vanilla lightmap values.
|
default MutableQuadView |
MutableQuadView.lightmap(int b0,
int b1,
int b2,
int b3)
Convenience: set lightmap for all vertices at once.
|
MutableQuadView |
MutableQuadView.material(RenderMaterial material)
Assigns a different material to this quad.
|
MutableQuadView |
MutableQuadView.nominalFace(net.minecraft.util.math.Direction face)
Provides a hint to renderer about the facing of this quad.
|
MutableQuadView |
MutableQuadView.normal(int vertexIndex,
float x,
float y,
float z)
Adds a vertex normal.
|
default MutableQuadView |
MutableQuadView.normal(int vertexIndex,
net.minecraft.client.util.math.Vector3f vec)
Same as
#normal(float, float, float, extra) but accepts vector type. |
MutableQuadView |
MutableQuadView.pos(int vertexIndex,
float x,
float y,
float z)
Sets the geometric vertex position for the given vertex,
relative to block origin.
|
default MutableQuadView |
MutableQuadView.pos(int vertexIndex,
net.minecraft.client.util.math.Vector3f vec)
Same as
#pos(float, float, float) but accepts vector type. |
MutableQuadView |
MutableQuadView.sprite(int vertexIndex,
int spriteIndex,
float u,
float v)
Set sprite atlas coordinates.
|
MutableQuadView |
MutableQuadView.spriteBake(int spriteIndex,
net.minecraft.client.texture.Sprite sprite,
int bakeFlags)
Assigns sprite atlas u,v coordinates to this quad for the given sprite.
|
MutableQuadView |
MutableQuadView.spriteColor(int vertexIndex,
int spriteIndex,
int color)
Set sprite color.
|
default MutableQuadView |
MutableQuadView.spriteColor(int spriteIndex,
int c0,
int c1,
int c2,
int c3)
Convenience: set sprite color for all vertices at once.
|
MutableQuadView |
MutableQuadView.tag(int tag)
Encodes an integer tag with this quad that can later be retrieved via
QuadView.tag() . |
Modifier and Type | Method and Description |
---|---|
void |
QuadView.copyTo(MutableQuadView target)
Extracts all quad properties except material to the given
MutableQuadView instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
RenderContext.QuadTransform.transform(MutableQuadView quad)
Return false to filter out quads from rendering.
|