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 aHueGradientQuadGuiElementRenderState
record 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.ScreenRect
bounds()
Returns the value of thebounds
record component.draw
(net.minecraft.client.gui.DrawContext context, int x0, int y0, int x1, int y1) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.mojang.blaze3d.pipeline.RenderPipeline
pipeline()
Returns the value of thepipeline
record component.org.joml.Matrix3x2f
pose()
Returns the value of thepose
record component.@Nullable net.minecraft.client.gui.ScreenRect
Returns the value of thescissorArea
record component.void
setupVertices
(net.minecraft.client.render.VertexConsumer vertices, float depth) net.minecraft.client.texture.TextureSetup
Returns the value of thetextureSetup
record component.final String
toString()
Returns a string representation of this record class.float
x0()
Returns the value of thex0
record component.float
x1()
Returns the value of thex1
record component.float
y0()
Returns the value of they0
record component.float
y1()
Returns the value of they1
record 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 aHueGradientQuadGuiElementRenderState
record class.- Parameters:
pipeline
- the value for thepipeline
record componenttextureSetup
- the value for thetextureSetup
record componentpose
- the value for thepose
record componentx0
- the value for thex0
record componenty0
- the value for they0
record componentx1
- the value for thex1
record componenty1
- the value for they1
record componentscissorArea
- the value for thescissorArea
record componentbounds
- the value for thebounds
record component
-
-
Method Details
-
setupVertices
public void setupVertices(net.minecraft.client.render.VertexConsumer vertices, float depth) - Specified by:
setupVertices
in 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 thepipeline
record component.- Specified by:
pipeline
in interfacenet.minecraft.client.gui.render.state.SimpleGuiElementRenderState
- Returns:
- the value of the
pipeline
record component
-
textureSetup
public net.minecraft.client.texture.TextureSetup textureSetup()Returns the value of thetextureSetup
record component.- Specified by:
textureSetup
in interfacenet.minecraft.client.gui.render.state.SimpleGuiElementRenderState
- Returns:
- the value of the
textureSetup
record component
-
pose
public org.joml.Matrix3x2f pose()Returns the value of thepose
record component.- Returns:
- the value of the
pose
record component
-
x0
public float x0()Returns the value of thex0
record component.- Returns:
- the value of the
x0
record component
-
y0
public float y0()Returns the value of they0
record component.- Returns:
- the value of the
y0
record component
-
x1
public float x1()Returns the value of thex1
record component.- Returns:
- the value of the
x1
record component
-
y1
public float y1()Returns the value of they1
record component.- Returns:
- the value of the
y1
record component
-
scissorArea
@Nullable public @Nullable net.minecraft.client.gui.ScreenRect scissorArea()Returns the value of thescissorArea
record component.- Specified by:
scissorArea
in interfacenet.minecraft.client.gui.render.state.SimpleGuiElementRenderState
- Returns:
- the value of the
scissorArea
record component
-
bounds
@Nullable public @Nullable net.minecraft.client.gui.ScreenRect bounds()Returns the value of thebounds
record component.- Specified by:
bounds
in interfacenet.minecraft.client.gui.render.state.GuiElementRenderState
- Returns:
- the value of the
bounds
record component
-