Record Class BakedQuad
java.lang.Object
java.lang.Record
net.minecraft.client.resources.model.geometry.BakedQuad
public record BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo, BakedNormals bakedNormals, BakedColors bakedColors)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BakedColorsThe field for thebakedColorsrecord component.private final BakedNormalsThe field for thebakedNormalsrecord component.private final DirectionThe field for thedirectionrecord component.static final intstatic final intprivate final BakedQuad.MaterialInfoThe field for thematerialInforecord component.private final longThe field for thepackedUV0record component.private final longThe field for thepackedUV1record component.private final longThe field for thepackedUV2record component.private final longThe field for thepackedUV3record component.private final org.joml.Vector3fcThe field for theposition0record component.private final org.joml.Vector3fcThe field for theposition1record component.private final org.joml.Vector3fcThe field for theposition2record component.private final org.joml.Vector3fcThe field for theposition3record component.static final int -
Constructor Summary
ConstructorsConstructorDescriptionBakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo) BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo, BakedNormals bakedNormals, BakedColors bakedColors) Creates an instance of aBakedQuadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebakedColorsrecord component.Returns the value of thebakedNormalsrecord component.Returns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thematerialInforecord component.longpackedUV(int vertex) longReturns the value of thepackedUV0record component.longReturns the value of thepackedUV1record component.longReturns the value of thepackedUV2record component.longReturns the value of thepackedUV3record component.org.joml.Vector3fcposition(int vertex) org.joml.Vector3fcReturns the value of theposition0record component.org.joml.Vector3fcReturns the value of theposition1record component.org.joml.Vector3fcReturns the value of theposition2record component.org.joml.Vector3fcReturns the value of theposition3record component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
position0
private final org.joml.Vector3fc position0The field for theposition0record component. -
position1
private final org.joml.Vector3fc position1The field for theposition1record component. -
position2
private final org.joml.Vector3fc position2The field for theposition2record component. -
position3
private final org.joml.Vector3fc position3The field for theposition3record component. -
packedUV0
private final long packedUV0The field for thepackedUV0record component. -
packedUV1
private final long packedUV1The field for thepackedUV1record component. -
packedUV2
private final long packedUV2The field for thepackedUV2record component. -
packedUV3
private final long packedUV3The field for thepackedUV3record component. -
direction
The field for thedirectionrecord component. -
materialInfo
The field for thematerialInforecord component. -
bakedNormals
The field for thebakedNormalsrecord component. -
bakedColors
The field for thebakedColorsrecord component. -
VERTEX_COUNT
public static final int VERTEX_COUNT- See Also:
-
FLAG_TRANSLUCENT
public static final int FLAG_TRANSLUCENT- See Also:
-
FLAG_ANIMATED
public static final int FLAG_ANIMATED- See Also:
-
-
Constructor Details
-
BakedQuad
public BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo) -
BakedQuad
public BakedQuad(org.joml.Vector3fc position0, org.joml.Vector3fc position1, org.joml.Vector3fc position2, org.joml.Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, Direction direction, BakedQuad.MaterialInfo materialInfo, BakedNormals bakedNormals, BakedColors bakedColors) Creates an instance of aBakedQuadrecord class.- Parameters:
position0- the value for theposition0record componentposition1- the value for theposition1record componentposition2- the value for theposition2record componentposition3- the value for theposition3record componentpackedUV0- the value for thepackedUV0record componentpackedUV1- the value for thepackedUV1record componentpackedUV2- the value for thepackedUV2record componentpackedUV3- the value for thepackedUV3record componentdirection- the value for thedirectionrecord componentmaterialInfo- the value for thematerialInforecord componentbakedNormals- the value for thebakedNormalsrecord componentbakedColors- the value for thebakedColorsrecord component
-
-
Method Details
-
position
public org.joml.Vector3fc position(int vertex) -
packedUV
public long packedUV(int vertex) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
position0
public org.joml.Vector3fc position0()Returns the value of theposition0record component.- Returns:
- the value of the
position0record component
-
position1
public org.joml.Vector3fc position1()Returns the value of theposition1record component.- Returns:
- the value of the
position1record component
-
position2
public org.joml.Vector3fc position2()Returns the value of theposition2record component.- Returns:
- the value of the
position2record component
-
position3
public org.joml.Vector3fc position3()Returns the value of theposition3record component.- Returns:
- the value of the
position3record component
-
packedUV0
public long packedUV0()Returns the value of thepackedUV0record component.- Returns:
- the value of the
packedUV0record component
-
packedUV1
public long packedUV1()Returns the value of thepackedUV1record component.- Returns:
- the value of the
packedUV1record component
-
packedUV2
public long packedUV2()Returns the value of thepackedUV2record component.- Returns:
- the value of the
packedUV2record component
-
packedUV3
public long packedUV3()Returns the value of thepackedUV3record component.- Returns:
- the value of the
packedUV3record component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
materialInfo
Returns the value of thematerialInforecord component.- Returns:
- the value of the
materialInforecord component
-
bakedNormals
Returns the value of thebakedNormalsrecord component.- Returns:
- the value of the
bakedNormalsrecord component
-
bakedColors
Returns the value of thebakedColorsrecord component.- Returns:
- the value of the
bakedColorsrecord component
-