Uses of Class
net.neoforged.neoforge.client.model.quad.MutableQuad
Packages that use MutableQuad
Package
Description
Extension interfaces for
client-only classes.-
Uses of MutableQuad in net.neoforged.neoforge.client.extensions
Methods in net.neoforged.neoforge.client.extensions with parameters of type MutableQuadModifier and TypeMethodDescriptiondefault voidIVertexConsumerExtension.putBulkData(PoseStack.Pose pose, MutableQuad quad, float[] brightness, float r, float g, float b, float a, int[] lightmapCoord, int overlayCoords) Same as, but sources the data from ainvalid reference
VertexConsumer#putBulkData(PoseStack.Pose, BakedQuad, float[], float, float, float, float, int[], int)MutableQuad.default voidIVertexConsumerExtension.putBulkData(PoseStack.Pose pose, MutableQuad quad, float r, float g, float b, float a, int lightCoords, int overlayCoords) Same asIVertexConsumerExtension.putBulkData(PoseStack.Pose, MutableQuad, float[], float, float, float, float, int[], int), but does not shade the color (assumes brightness = 1), and uses the samelightCoordsfor all four vertices. -
Uses of MutableQuad in net.neoforged.neoforge.client.model.quad
Methods in net.neoforged.neoforge.client.model.quad that return MutableQuadModifier and TypeMethodDescriptionMutableQuad.bakeUvsFromPosition()Projects each vertex onto the cube face the quad is sourcing its block lighting from, and derives the vertex UV that way.MutableQuad.bakeUvsFromPosition(UVTransform transform) Same asMutableQuad.bakeUvsFromPosition(), but applies a transform to the generated UVs before baking.MutableQuad.copy()Returns a copy of this mutable quad.MutableQuad.copyInto(MutableQuad dest) Copies the contents of this mutable quad into the provided mutable quad and returns it.MutableQuad.recalculateWinding()Recalculates the order of vertices to conform to the order expected by the Vanilla AO algorithm.MutableQuad.recomputeNormals(boolean updateDirection) Recomputes the quad normal from the vertex positions.MutableQuad.reset()MutableQuad.setColor(int packedColor) Sets the color of all vertices to a packed ARGB color.MutableQuad.setColor(int vertexIndex, int packedColor) Sets the color of a vertex to a packed ARGB color.MutableQuad.setColor(int vertexIndex, int r, int g, int b, int a) Sets the color of a vertex from integer components (0-255).MutableQuad.setColor(BakedColors bakedColors) Sets the color of all vertices to a packed ARGB color.MutableQuad.setCubeFace(Direction side, float fromX, float fromY, float fromZ, float toX, float toY, float toZ) Sets the positions of this quad to the face of a cube as it would be defined in a Vanilla block model.MutableQuad.setCubeFace(Direction side, Vector3fc from, Vector3fc to) Same asMutableQuad.setCubeFace(Direction, float, float, float, float, float, float), but takes the from and to positions from vectors.MutableQuad.setCubeFaceFromSpriteCoords(Direction side, float left, float bottom, float right, float top, float depth) Sets the positions of this quad to form a rectangle on the given block side using a coordinate-system matching the default orientation of sprites in Vanilla block-models.MutableQuad.setDirection(Direction direction) MutableQuad.setFullCubeFace(Direction side) Same asMutableQuad.setCubeFace(Direction, float, float, float, float, float, float), but uses the full cube.MutableQuad.setHasAmbientOcclusion(boolean hasAmbientOcclusion) MutableQuad.setLightEmission(int lightEmission) MutableQuad.setNormal(int vertexIndex, float x, float y, float z) Sets the normal vector of a vertex.Sets the normal vector of a vertex.MutableQuad.setNormal(BakedNormals bakedNormals) Sets the normal vector of all vertices to the normal vectors encoded in the given baked normals object.MutableQuad.setNormalComponent(int vertexIndex, int componentIndex, float value) Sets a component of a vertex's normal.MutableQuad.setPackedNormal(int vertexIndex, int packedNormal) Sets the normal vector of a vertex from its packed representation.MutableQuad.setPackedUv(int vertexIndex, long packedUv) Sets the texture coordinate of a vertex from their packed representation.MutableQuad.setPosition(int vertexIndex, float x, float y, float z) Sets a vertex's position.MutableQuad.setPosition(int vertexIndex, Vector3fc position) Sets a vertex's position.MutableQuad.setPositionComponent(int vertexIndex, int componentIndex, float value) Sets a component of a vertex's position.MutableQuad.setShade(boolean shade) MutableQuad.setSpriteInfo(BakedQuad.SpriteInfo spriteInfo) Changes the texture atlas sprite used by this quad.MutableQuad.setSpriteInfoAndMoveUv(BakedQuad.SpriteInfo spriteInfo) Changes the sprite and remaps the UV to the new sprites position in the texture atlas.MutableQuad.setTintIndex(int tintIndex) MutableQuad.setUv(int vertexIndex, float u, float v) Sets the texture coordinate of a vertex.Sets the texture coordinate of a vertex.MutableQuad.setUvComponent(int vertexIndex, int componentIndex, float value) Sets a component of the texture coordinate of a vertex.MutableQuad.setUvFromSprite(int vertexIndex, float u, float v) Assigns UV coordinates to a vertex of the current quad based on its sprite and the given UV coordinates within that sprite.MutableQuad.setUvFromSprite(int vertexIndex, Vector2fc uv) Assigns UV coordinates to a vertex of the current quad based on its sprite and the given UV coordinates within that sprite.MutableQuad.setX(int vertexIndex, float x) Sets the x-component of a vertex's position.MutableQuad.setY(int vertexIndex, float y) Sets the y-component of a vertex's position.MutableQuad.setZ(int vertexIndex, float z) Sets the x-component of a vertex's position.Applies the given matrix to this quads position and normals (if specified).Methods in net.neoforged.neoforge.client.model.quad with parameters of type MutableQuadModifier and TypeMethodDescriptionMutableQuad.copyInto(MutableQuad dest) Copies the contents of this mutable quad into the provided mutable quad and returns it.