Package net.replaceitem.reconfigure.util
Record Class HueGradientQuadGuiElementRenderState
java.lang.Object
java.lang.Record
net.replaceitem.reconfigure.util.HueGradientQuadGuiElementRenderState
- All Implemented Interfaces:
net.minecraft.client.gui.render.state.GuiElementRenderState,net.minecraft.client.gui.render.state.ScreenArea
public record HueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.gui.render.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds)
extends Record
implements net.minecraft.client.gui.render.state.GuiElementRenderState
-
Constructor Summary
ConstructorsConstructorDescriptionHueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.gui.render.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds) Creates an instance of aHueGradientQuadGuiElementRenderStaterecord class.HueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.gui.render.TextureSetup textureSetup, org.joml.Matrix3x2f pose, int x0, int y0, int x1, int y1, @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.client.gui.navigation.ScreenRectanglebounds()Returns the value of theboundsrecord component.voidbuildVertices(com.mojang.blaze3d.vertex.VertexConsumer vertices) draw(net.minecraft.client.gui.GuiGraphics context, int x0, int y0, int x1, int y1) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.mojang.blaze3d.pipeline.RenderPipelinepipeline()Returns the value of thepipelinerecord component.org.joml.Matrix3x2fpose()Returns the value of theposerecord component.@Nullable net.minecraft.client.gui.navigation.ScreenRectangleReturns the value of thescissorArearecord component.net.minecraft.client.gui.render.TextureSetupReturns the value of thetextureSetuprecord component.final StringtoString()Returns a string representation of this record class.floatx0()Returns the value of thex0record component.floatx1()Returns the value of thex1record component.floaty0()Returns the value of they0record component.floaty1()Returns the value of they1record component.
-
Constructor Details
-
Method Details
-
buildVertices
public void buildVertices(com.mojang.blaze3d.vertex.VertexConsumer vertices) - Specified by:
buildVerticesin interfacenet.minecraft.client.gui.render.state.GuiElementRenderState
-
draw
public static HueGradientQuadGuiElementRenderState draw(net.minecraft.client.gui.GuiGraphics context, int x0, int y0, int x1, int y1) -
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
public com.mojang.blaze3d.pipeline.RenderPipeline pipeline()Returns the value of thepipelinerecord component.- Specified by:
pipelinein interfacenet.minecraft.client.gui.render.state.GuiElementRenderState- Returns:
- the value of the
pipelinerecord component
-
textureSetup
public net.minecraft.client.gui.render.TextureSetup textureSetup()Returns the value of thetextureSetuprecord component.- Specified by:
textureSetupin interfacenet.minecraft.client.gui.render.state.GuiElementRenderState- Returns:
- the value of the
textureSetuprecord component
-
pose
public org.joml.Matrix3x2f pose()Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
x0
public float x0()Returns the value of thex0record component.- Returns:
- the value of the
x0record component
-
y0
public float y0()Returns the value of they0record component.- Returns:
- the value of the
y0record component
-
x1
public float x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public float y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
scissorArea
public @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea()Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfacenet.minecraft.client.gui.render.state.GuiElementRenderState- Returns:
- the value of the
scissorArearecord component
-
bounds
public @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds()Returns the value of theboundsrecord component.- Specified by:
boundsin interfacenet.minecraft.client.gui.render.state.ScreenArea- Returns:
- the value of the
boundsrecord component
-