Record Class SpriteCoordinateExpander
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.SpriteCoordinateExpander
- All Implemented Interfaces:
VertexConsumer, IVertexConsumerExtension
public record SpriteCoordinateExpander(VertexConsumer delegate, UvMapping mapping)
extends Record
implements VertexConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final VertexConsumerThe field for thedelegaterecord component.private final UvMappingThe field for themappingrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSpriteCoordinateExpander(VertexConsumer delegate, UvMapping mapping) Creates an instance of aSpriteCoordinateExpanderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaddVertex(float x, float y, float z) voidaddVertex(float x, float y, float z, int color, float u, float v, int overlayCoords, int lightCoords, float nx, float ny, float nz) delegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mapping()Returns the value of themappingrecord component.setColor(int color) setColor(int r, int g, int b, int a) setLineWidth(float width) setNormal(float x, float y, float z) setUv(float u, float v) setUv1(int u, int v) setUv2(int u, int v) setUv3(float u, float v) final StringtoString()Returns a string representation of this record class.Methods inherited from interface IVertexConsumerExtension
applyBakedNormals, misc, putMutableQuadMethods inherited from interface VertexConsumer
addVertex, addVertex, addVertex, addVertex, addVertexWith2DPose, putBakedQuad, putBakedQuadWithGlint, putBlockBakedQuad, setColor, setLight, setNormal, setNormal, setOverlay
-
Field Details
-
delegate
The field for thedelegaterecord component. -
mapping
The field for themappingrecord component.
-
-
Constructor Details
-
SpriteCoordinateExpander
Creates an instance of aSpriteCoordinateExpanderrecord class.- Parameters:
delegate- the value for thedelegaterecord componentmapping- the value for themappingrecord component
-
-
Method Details
-
addVertex
- Specified by:
addVertexin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setColor
- Specified by:
setColorin interfaceVertexConsumer
-
setUv
- Specified by:
setUvin interfaceVertexConsumer
-
setUv1
- Specified by:
setUv1in interfaceVertexConsumer
-
setUv2
- Specified by:
setUv2in interfaceVertexConsumer
-
setUv3
- Specified by:
setUv3in interfaceVertexConsumer
-
setNormal
- Specified by:
setNormalin interfaceVertexConsumer
-
setLineWidth
- Specified by:
setLineWidthin interfaceVertexConsumer
-
addVertex
public void addVertex(float x, float y, float z, int color, float u, float v, int overlayCoords, int lightCoords, float nx, float ny, float nz) - Specified by:
addVertexin interfaceVertexConsumer
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
delegate
Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-
mapping
Returns the value of themappingrecord component.- Returns:
- the value of the
mappingrecord component
-