Record Class CustomGuiRendererState
java.lang.Object
java.lang.Record
com.hammy275.immersivemc.client.model.CustomGuiRendererState
- All Implemented Interfaces:
net.minecraft.client.gui.render.state.pip.PictureInPictureRenderState,net.minecraft.client.gui.render.state.ScreenArea
public record CustomGuiRendererState(int x0, int x1, int y0, int y1, float scale, net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, net.minecraft.client.gui.navigation.ScreenRectangle bounds, BiConsumer<com.mojang.blaze3d.vertex.PoseStack,net.minecraft.client.renderer.MultiBufferSource.BufferSource> renderer)
extends Record
implements net.minecraft.client.gui.render.state.pip.PictureInPictureRenderState
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.render.state.pip.PictureInPictureRenderState
IDENTITY_POSE -
Constructor Summary
ConstructorsConstructorDescriptionCustomGuiRendererState(double x0, double x1, double y0, double y1, float scale, net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, BiConsumer<com.mojang.blaze3d.vertex.PoseStack, net.minecraft.client.renderer.MultiBufferSource.BufferSource> renderer) CustomGuiRendererState(int x0, int x1, int y0, int y1, float scale, net.minecraft.client.gui.navigation.ScreenRectangle scissorArea, net.minecraft.client.gui.navigation.ScreenRectangle bounds, BiConsumer<com.mojang.blaze3d.vertex.PoseStack, net.minecraft.client.renderer.MultiBufferSource.BufferSource> renderer) Creates an instance of aCustomGuiRendererStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.gui.navigation.ScreenRectanglebounds()Returns the value of theboundsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.BiConsumer<com.mojang.blaze3d.vertex.PoseStack, net.minecraft.client.renderer.MultiBufferSource.BufferSource> renderer()Returns the value of therendererrecord component.floatscale()Returns the value of thescalerecord component.net.minecraft.client.gui.navigation.ScreenRectangleReturns the value of thescissorArearecord component.final StringtoString()Returns a string representation of this record class.intx0()Returns the value of thex0record component.intx1()Returns the value of thex1record component.inty0()Returns the value of they0record component.inty1()Returns the value of they1record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.render.state.pip.PictureInPictureRenderState
pose
-
Constructor Details
-
Method Details
-
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 '=='. -
x0
public int x0()Returns the value of thex0record component.- Specified by:
x0in interfacenet.minecraft.client.gui.render.state.pip.PictureInPictureRenderState- Returns:
- the value of the
x0record component
-
x1
public int x1()Returns the value of thex1record component.- Specified by:
x1in interfacenet.minecraft.client.gui.render.state.pip.PictureInPictureRenderState- Returns:
- the value of the
x1record component
-
y0
public int y0()Returns the value of they0record component.- Specified by:
y0in interfacenet.minecraft.client.gui.render.state.pip.PictureInPictureRenderState- Returns:
- the value of the
y0record component
-
y1
public int y1()Returns the value of they1record component.- Specified by:
y1in interfacenet.minecraft.client.gui.render.state.pip.PictureInPictureRenderState- Returns:
- the value of the
y1record component
-
scale
public float scale()Returns the value of thescalerecord component.- Specified by:
scalein interfacenet.minecraft.client.gui.render.state.pip.PictureInPictureRenderState- Returns:
- the value of the
scalerecord component
-
scissorArea
public net.minecraft.client.gui.navigation.ScreenRectangle scissorArea()Returns the value of thescissorArearecord component.- Specified by:
scissorAreain interfacenet.minecraft.client.gui.render.state.pip.PictureInPictureRenderState- Returns:
- the value of the
scissorArearecord component
-
bounds
public 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
-
renderer
public BiConsumer<com.mojang.blaze3d.vertex.PoseStack,net.minecraft.client.renderer.MultiBufferSource.BufferSource> renderer()Returns the value of therendererrecord component.- Returns:
- the value of the
rendererrecord component
-