Package net.replaceitem.reconfigure.util
Record Class ColoredAxisQuadGuiElementRenderState
java.lang.Object
java.lang.Record
net.replaceitem.reconfigure.util.ColoredAxisQuadGuiElementRenderState
- All Implemented Interfaces:
net.minecraft.client.gui.render.state.GuiElementRenderState
,net.minecraft.client.gui.render.state.SimpleGuiElementRenderState
public record ColoredAxisQuadGuiElementRenderState(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, int col1, int col2, net.minecraft.client.gui.navigation.NavigationAxis axis, @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
ConstructorsConstructorDescriptionColoredAxisQuadGuiElementRenderState
(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, int col1, int col2, net.minecraft.client.gui.navigation.NavigationAxis axis, @Nullable net.minecraft.client.gui.ScreenRect scissorArea) ColoredAxisQuadGuiElementRenderState
(com.mojang.blaze3d.pipeline.RenderPipeline pipeline, net.minecraft.client.texture.TextureSetup textureSetup, org.joml.Matrix3x2f pose, float x0, float y0, float x1, float y1, int col1, int col2, net.minecraft.client.gui.navigation.NavigationAxis axis, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds) Creates an instance of aColoredAxisQuadGuiElementRenderState
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.navigation.NavigationAxis
axis()
Returns the value of theaxis
record component.@Nullable net.minecraft.client.gui.ScreenRect
bounds()
Returns the value of thebounds
record component.int
col1()
Returns the value of thecol1
record component.int
col2()
Returns the value of thecol2
record component.draw
(net.minecraft.client.gui.DrawContext context, float x0, float y0, float x1, float y1, int col1, int col2, net.minecraft.client.gui.navigation.NavigationAxis axis) 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
-
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
-
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
-
col1
public int col1()Returns the value of thecol1
record component.- Returns:
- the value of the
col1
record component
-
col2
public int col2()Returns the value of thecol2
record component.- Returns:
- the value of the
col2
record component
-
axis
public net.minecraft.client.gui.navigation.NavigationAxis axis()Returns the value of theaxis
record component.- Returns:
- the value of the
axis
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
-