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/BakedQuad
intermediary net/minecraft/class_777
official gst
named vertexData
intermediary comp_3721
official a
named tintIndex
intermediary comp_3722
official b
named face
intermediary comp_3723
official c
named sprite
intermediary comp_3724
official d
named shade
intermediary comp_3725
official e
named lightEmission
intermediary comp_3726
official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Direction
The field for theface
record component.private final int
The field for thelightEmission
record component.private final boolean
The field for theshade
record component.private final Sprite
The field for thesprite
record component.private final int
The field for thetintIndex
record component.private final int[]
The field for thevertexData
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.face()
Returns the value of theface
record component.final int
hashCode()
Returns a hash code value for this object.boolean
hasTint()
int
Returns the value of thelightEmission
record component.boolean
shade()
Returns the value of theshade
record component.sprite()
Returns the value of thesprite
record component.int
Returns the value of thetintIndex
record component.final String
toString()
Returns a string representation of this record class.int[]
Returns the value of thevertexData
record component.
-
Field Details
-
vertexData
private final int[] vertexDataThe field for thevertexData
record component. -
tintIndex
private final int tintIndexThe field for thetintIndex
record component. -
face
The field for theface
record component. -
sprite
The field for thesprite
record component. -
shade
private final boolean shadeThe field for theshade
record component. -
lightEmission
private final int lightEmissionThe field for thelightEmission
record component.
-
-
Constructor Details
-
BakedQuad
public BakedQuad(int[] vertexData, int tintIndex, Direction face, Sprite sprite, boolean shade, int lightEmission) Creates an instance of aBakedQuad
record class.- Parameters:
vertexData
- the value for thevertexData
record componenttintIndex
- the value for thetintIndex
record componentface
- the value for theface
record componentsprite
- the value for thesprite
record componentshade
- the value for theshade
record componentlightEmission
- the value for thelightEmission
record component
-
-
Method Details
-
hasTint
public boolean hasTint()- Mappings:
Namespace Name Mixin selector named hasTint
Lnet/minecraft/client/render/model/BakedQuad;hasTint()Z
intermediary method_3360
Lnet/minecraft/class_777;method_3360()Z
official a
Lgst;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 thevertexData
record component.- Returns:
- the value of the
vertexData
record component
-
tintIndex
public int tintIndex()Returns the value of thetintIndex
record component.- Returns:
- the value of the
tintIndex
record component
-
face
Returns the value of theface
record component.- Returns:
- the value of the
face
record component
-
sprite
Returns the value of thesprite
record component.- Returns:
- the value of the
sprite
record component
-
shade
public boolean shade()Returns the value of theshade
record component.- Returns:
- the value of the
shade
record component
-
lightEmission
public int lightEmission()Returns the value of thelightEmission
record component.- Returns:
- the value of the
lightEmission
record component
-