Record Class ColoredQuadGuiElementRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.ColoredQuadGuiElementRenderState
- Record Components:
pipeline-textureSetup-pose-x0-y0-x1-y1-col1-col2-scissorArea-bounds-
- All Implemented Interfaces:
GuiElementRenderState,SimpleGuiElementRenderState
@Environment(CLIENT)
public record ColoredQuadGuiElementRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2fc pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable ScreenRect scissorArea, @Nullable ScreenRect bounds)
extends Record
implements SimpleGuiElementRenderState
- Mappings:
Namespace Name named net/minecraft/client/gui/render/state/ColoredQuadGuiElementRenderStateintermediary net/minecraft/class_11242official gnqnamed pipelineintermediary comp_4055official anamed textureSetupintermediary comp_4056official bnamed poseintermediary comp_4070official cnamed x0intermediary comp_4071official dnamed y0intermediary comp_4072official enamed x1intermediary comp_4073official fnamed y1intermediary comp_4074official gnamed col1intermediary comp_4075official hnamed col2intermediary comp_4076official inamed scissorAreaintermediary comp_4069official jnamed boundsintermediary comp_4274official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ScreenRectThe field for theboundsrecord component.private final intThe field for thecol1record component.private final intThe field for thecol2record component.private final RenderPipelineThe field for thepipelinerecord component.private final Matrix3x2fcThe field for theposerecord component.private final @Nullable ScreenRectThe field for thescissorArearecord component.private final TextureSetupThe field for thetextureSetuprecord component.private final intThe field for thex0record component.private final intThe field for thex1record component.private final intThe field for they0record component.private final intThe field for they1record component. -
Constructor Summary
ConstructorsConstructorDescriptionColoredQuadGuiElementRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2fc pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable ScreenRect scissorArea) ColoredQuadGuiElementRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2fc pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable ScreenRect scissorArea, @Nullable ScreenRect bounds) Creates an instance of aColoredQuadGuiElementRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.intcol1()Returns the value of thecol1record component.intcol2()Returns the value of thecol2record component.private static @Nullable ScreenRectcreateBounds(int x0, int y0, int x1, int y1, Matrix3x2fc pose, @Nullable ScreenRect scissorArea) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pipeline()Returns the value of thepipelinerecord component.pose()Returns the value of theposerecord component.Returns the value of thescissorArearecord component.voidsetupVertices(VertexConsumer vertices) Returns the value of thetextureSetuprecord component.final StringtoString()Returns a string representation of this record class.intx0()Returns the value of thex0record component.intx1()Returns the value of thex1record component.inty0()Returns the value of they0record component.inty1()Returns the value of they1record component.
-
Field Details
-
pipeline
The field for thepipelinerecord component. -
textureSetup
The field for thetextureSetuprecord component. -
pose
The field for theposerecord component. -
x0
private final int x0The field for thex0record component. -
y0
private final int y0The field for they0record component. -
x1
private final int x1The field for thex1record component. -
y1
private final int y1The field for they1record component. -
col1
private final int col1The field for thecol1record component. -
col2
private final int col2The field for thecol2record component. -
scissorArea
The field for thescissorArearecord component. -
bounds
The field for theboundsrecord component.
-
-
Constructor Details
-
ColoredQuadGuiElementRenderState
public ColoredQuadGuiElementRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2fc pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable @Nullable ScreenRect scissorArea) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/render/state/ColoredQuadGuiElementRenderState;<init>(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/client/texture/TextureSetup;Lorg/joml/Matrix3x2fc;IIIIIILnet/minecraft/client/gui/ScreenRect;)Vintermediary <init>Lnet/minecraft/class_11242;<init>(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lnet/minecraft/class_11231;Lorg/joml/Matrix3x2fc;IIIIIILnet/minecraft/class_8030;)Vofficial <init>Lgnq;<init>(Lcom/mojang/blaze3d/pipeline/RenderPipeline;Lgne;Lorg/joml/Matrix3x2fc;IIIIIILgna;)V
-
ColoredQuadGuiElementRenderState
public ColoredQuadGuiElementRenderState(RenderPipeline pipeline, TextureSetup textureSetup, Matrix3x2fc pose, int x0, int y0, int x1, int y1, int col1, int col2, @Nullable @Nullable ScreenRect scissorArea, @Nullable @Nullable ScreenRect bounds) Creates an instance of aColoredQuadGuiElementRenderStaterecord class.- Parameters:
pipeline- the value for thepipelinerecord componenttextureSetup- the value for thetextureSetuprecord componentpose- the value for theposerecord componentx0- the value for thex0record componenty0- the value for they0record componentx1- the value for thex1record componenty1- the value for they1record componentcol1- the value for thecol1record componentcol2- the value for thecol2record componentscissorArea- the value for thescissorArearecord componentbounds- the value for theboundsrecord component
-
-
Method Details
-
setupVertices
- Specified by:
setupVerticesin interfaceSimpleGuiElementRenderState- Mappings:
Namespace Name Mixin selector named setupVerticesLnet/minecraft/client/gui/render/state/SimpleGuiElementRenderState;setupVertices(Lnet/minecraft/client/render/VertexConsumer;)Vintermediary method_70917Lnet/minecraft/class_11244;method_70917(Lnet/minecraft/class_4588;)Vofficial aLgns;a(Lfxe;)V
-
createBounds
@Nullable private static @Nullable ScreenRect createBounds(int x0, int y0, int x1, int y1, Matrix3x2fc pose, @Nullable @Nullable ScreenRect scissorArea) - Mappings:
Namespace Name Mixin selector named createBoundsLnet/minecraft/client/gui/render/state/ColoredQuadGuiElementRenderState;createBounds(IIIILorg/joml/Matrix3x2fc;Lnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/gui/ScreenRect;intermediary method_71527Lnet/minecraft/class_11242;method_71527(IIIILorg/joml/Matrix3x2fc;Lnet/minecraft/class_8030;)Lnet/minecraft/class_8030;official aLgnq;a(IIIILorg/joml/Matrix3x2fc;Lgna;)Lgna;
-
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 '=='. -
pipeline
Returns the value of thepipelinerecord component.- Specified by:
pipelinein interfaceSimpleGuiElementRenderState- Returns:
- the value of the
pipelinerecord component
-
textureSetup
Returns the value of thetextureSetuprecord component.- Specified by:
textureSetupin interfaceSimpleGuiElementRenderState- Returns:
- the value of the
textureSetuprecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
x0
public int x0()Returns the value of thex0record component.- Returns:
- the value of the
x0record component
-
y0
public int y0()Returns the value of they0record component.- Returns:
- the value of the
y0record component
-
x1
public int x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public int y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
col1
public int col1()Returns the value of thecol1record component.- Returns:
- the value of the
col1record component
-
col2
public int col2()Returns the value of thecol2record component.- Returns:
- the value of the
col2record component
-
scissorArea
Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfaceSimpleGuiElementRenderState- Returns:
- the value of the
scissorArearecord component
-
bounds
Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceGuiElementRenderState- Returns:
- the value of the
boundsrecord component
-