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 aColoredAxisQuadGuiElementRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.navigation.NavigationAxisaxis()Returns the value of theaxisrecord component.@Nullable net.minecraft.client.gui.ScreenRectbounds()Returns the value of theboundsrecord component.intcol1()Returns the value of thecol1record component.intcol2()Returns the value of thecol2record 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 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
-
Method Details
-
setupVertices
public void setupVertices(net.minecraft.client.render.VertexConsumer vertices) - Specified by:
setupVerticesin 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 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
-
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
-
axis
public net.minecraft.client.gui.navigation.NavigationAxis axis()Returns the value of theaxisrecord component.- Returns:
- the value of the
axisrecord 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
-