Record Class BakedQuad
java.lang.Object
java.lang.Record
net.minecraft.client.render.model.BakedQuad
- Record Components:
vertexData-tintIndex-face-sprite-shade-lightEmission-
@Environment(CLIENT)
public record BakedQuad(int[] vertexData, int tintIndex, Direction face, Sprite sprite, boolean shade, int lightEmission)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/model/BakedQuadintermediary net/minecraft/class_777official gstnamed vertexDataintermediary comp_3721official anamed tintIndexintermediary comp_3722official bnamed faceintermediary comp_3723official cnamed spriteintermediary comp_3724official dnamed shadeintermediary comp_3725official enamed lightEmissionintermediary comp_3726official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DirectionThe field for thefacerecord component.private final intThe field for thelightEmissionrecord component.private final booleanThe field for theshaderecord component.private final SpriteThe field for thespriterecord component.private final intThe field for thetintIndexrecord component.private final int[]The field for thevertexDatarecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.face()Returns the value of thefacerecord component.final inthashCode()Returns a hash code value for this object.booleanhasTint()intReturns the value of thelightEmissionrecord 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.int[]Returns the value of thevertexDatarecord component.
-
Field Details
-
vertexData
private final int[] vertexDataThe field for thevertexDatarecord component. -
tintIndex
private final int tintIndexThe field for thetintIndexrecord component. -
face
The field for thefacerecord 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.
-
-
Constructor Details
-
BakedQuad
public BakedQuad(int[] vertexData, int tintIndex, Direction face, Sprite sprite, boolean shade, int lightEmission) Creates an instance of aBakedQuadrecord class.- Parameters:
vertexData- the value for thevertexDatarecord componenttintIndex- the value for thetintIndexrecord componentface- the value for thefacerecord componentsprite- the value for thespriterecord componentshade- the value for theshaderecord componentlightEmission- the value for thelightEmissionrecord component
-
-
Method Details
-
hasTint
public boolean hasTint()- Mappings:
Namespace Name Mixin selector named hasTintLnet/minecraft/client/render/model/BakedQuad;hasTint()Zintermediary method_3360Lnet/minecraft/class_777;method_3360()Zofficial aLgst;a()Z
-
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 '=='. -
vertexData
public int[] vertexData()Returns the value of thevertexDatarecord component.- Returns:
- the value of the
vertexDatarecord component
-
tintIndex
public int tintIndex()Returns the value of thetintIndexrecord component.- Returns:
- the value of the
tintIndexrecord component
-
face
Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord 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
-