Record Class BakedQuad
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.block.model.BakedQuad
- Record Components:
hasAmbientOcclusion-falseto force-disable AO for this quad ortrueto use the behavior dictated byBlockModelPartExtension.ambientOcclusion().
public record BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, BakedNormals bakedNormals, BakedColors bakedColors, boolean hasAmbientOcclusion)
extends 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.private final booleanThe field for thehasAmbientOcclusionrecord component.private final intThe field for thelightEmissionrecord 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 Vector3fcThe field for theposition0record component.private final Vector3fcThe field for theposition1record component.private final Vector3fcThe field for theposition2record component.private final Vector3fcThe field for theposition3record component.private final booleanThe field for theshaderecord component.private final TextureAtlasSpriteThe field for thespriterecord component.private final intThe field for thetintIndexrecord component.static final int -
Constructor Summary
ConstructorsConstructorDescriptionBakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission) BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, BakedNormals bakedNormals, BakedColors bakedColors, boolean hasAmbientOcclusion) 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.booleanReturns the value of thehasAmbientOcclusionrecord component.final inthashCode()Returns a hash code value for this object.booleanisTinted()intReturns the value of thelightEmissionrecord component.longpackedUV(int pIndex) longReturns the value of thepackedUV0record component.longReturns the value of thepackedUV1record component.longReturns the value of thepackedUV2record component.longReturns the value of thepackedUV3record component.position(int pIndex) Returns the value of theposition0record component.Returns the value of theposition1record component.Returns the value of theposition2record component.Returns the value of theposition3record component.booleanshade()Returns the value of theshaderecord component.sprite()Returns the value of thespriterecord component.intReturns the value of thetintIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
position0
The field for theposition0record component. -
position1
The field for theposition1record component. -
position2
The field for theposition2record component. -
position3
The 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. -
tintIndex
private final int tintIndexThe field for thetintIndexrecord component. -
direction
The field for thedirectionrecord component. -
sprite
The field for thespriterecord component. -
shade
private final boolean shadeThe field for theshaderecord component. -
lightEmission
private final int lightEmissionThe field for thelightEmissionrecord component. -
bakedNormals
The field for thebakedNormalsrecord component. -
bakedColors
The field for thebakedColorsrecord component. -
hasAmbientOcclusion
private final boolean hasAmbientOcclusionThe field for thehasAmbientOcclusionrecord component. -
VERTEX_COUNT
public static final int VERTEX_COUNT- See Also:
-
-
Constructor Details
-
BakedQuad
-
BakedQuad
public BakedQuad(Vector3fc position0, Vector3fc position1, Vector3fc position2, Vector3fc position3, long packedUV0, long packedUV1, long packedUV2, long packedUV3, int tintIndex, Direction direction, TextureAtlasSprite sprite, boolean shade, int lightEmission, BakedNormals bakedNormals, BakedColors bakedColors, boolean hasAmbientOcclusion) 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 componenttintIndex- the value for thetintIndexrecord componentdirection- the value for thedirectionrecord componentsprite- the value for thespriterecord componentshade- the value for theshaderecord componentlightEmission- the value for thelightEmissionrecord componentbakedNormals- the value for thebakedNormalsrecord componentbakedColors- the value for thebakedColorsrecord componenthasAmbientOcclusion- the value for thehasAmbientOcclusionrecord component
-
-
Method Details
-
isTinted
public boolean isTinted() -
position
-
packedUV
public long packedUV(int pIndex) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
position0
Returns the value of theposition0record component.- Returns:
- the value of the
position0record component
-
position1
Returns the value of theposition1record component.- Returns:
- the value of the
position1record component
-
position2
Returns the value of theposition2record component.- Returns:
- the value of the
position2record component
-
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
-
tintIndex
public int tintIndex()Returns the value of thetintIndexrecord component.- Returns:
- the value of the
tintIndexrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-
shade
public boolean shade()Returns the value of theshaderecord component.- Returns:
- the value of the
shaderecord component
-
lightEmission
public int lightEmission()Returns the value of thelightEmissionrecord component.- Returns:
- the value of the
lightEmissionrecord 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
-
hasAmbientOcclusion
public boolean hasAmbientOcclusion()Returns the value of thehasAmbientOcclusionrecord component.- Returns:
- the value of the
hasAmbientOcclusionrecord component
-