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.SimpleGuiElementRenderState
public record HueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds)
extends Record
implements net.minecraft.client.gui.render.state.SimpleGuiElementRenderState
-
Constructor Summary
ConstructorsConstructorDescriptionHueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds) Creates an instance of aHueGradientQuadGuiElementRenderStaterecord class.HueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, int x0, int y0, int x1, int y1, @Nullable net.minecraft.client.gui.ScreenRect scissorArea) -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.client.gui.ScreenRectbounds()Returns the value of theboundsrecord component.draw(net.minecraft.client.gui.DrawContext 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.ScreenRectReturns the value of thescissorArearecord component.voidsetupVertices(net.minecraft.client.render.VertexConsumer vertices) net.minecraft.client.texture.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
-
HueGradientQuadGuiElementRenderState
public HueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, int x0, int y0, int x1, int y1, @Nullable @Nullable net.minecraft.client.gui.ScreenRect scissorArea) -
HueGradientQuadGuiElementRenderState
public HueGradientQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, @Nullable @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable @Nullable net.minecraft.client.gui.ScreenRect bounds) Creates an instance of aHueGradientQuadGuiElementRenderStaterecord 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 componentscissorArea- the value for thescissorArearecord componentbounds- the value for theboundsrecord component
-
-
Method Details
-
setupVertices
public void setupVertices(net.minecraft.client.render.VertexConsumer vertices) - Specified by:
setupVerticesin interfacenet.minecraft.client.gui.render.state.SimpleGuiElementRenderState
-
draw
public static HueGradientQuadGuiElementRenderState draw(net.minecraft.client.gui.DrawContext 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.SimpleGuiElementRenderState- Returns:
- the value of the
pipelinerecord component
-
textureSetup
public net.minecraft.client.texture.TextureSetup textureSetup()Returns the value of thetextureSetuprecord component.- Specified by:
textureSetupin interfacenet.minecraft.client.gui.render.state.SimpleGuiElementRenderState- 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
@Nullable public @Nullable net.minecraft.client.gui.ScreenRect scissorArea()Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfacenet.minecraft.client.gui.render.state.SimpleGuiElementRenderState- Returns:
- the value of the
scissorArearecord component
-
bounds
@Nullable public @Nullable net.minecraft.client.gui.ScreenRect bounds()Returns the value of theboundsrecord component.- Specified by:
boundsin interfacenet.minecraft.client.gui.render.state.GuiElementRenderState- Returns:
- the value of the
boundsrecord component
-