Record Class ScaledGuiItems.State
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.paint.ScaledGuiItems.State
- All Implemented Interfaces:
net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState, net.minecraft.client.renderer.state.gui.ScreenArea
- Enclosing class:
ScaledGuiItems
public static record ScaledGuiItems.State(net.minecraft.client.renderer.state.gui.GuiItemRenderState item, int x0, int y0, int x1, int y1, float scale, org.joml.Matrix3x2f pose, int tint)
extends Record
implements net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
-
Field Summary
Fields inherited from interface net.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
IDENTITY_POSE -
Constructor Summary
ConstructorsConstructorDescriptionState(net.minecraft.client.renderer.state.gui.GuiItemRenderState item, int x0, int y0, int x1, int y1, float scale, org.joml.Matrix3x2f pose, int tint) Creates an instance of aStaterecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.client.gui.navigation.ScreenRectanglebounds()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.state.gui.GuiItemRenderStateitem()Returns the value of theitemrecord component.org.joml.Matrix3x2fpose()Returns the value of theposerecord component.floatscale()Returns the value of thescalerecord component.@Nullable net.minecraft.client.gui.navigation.ScreenRectangleinttint()Returns the value of thetintrecord 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.
-
Constructor Details
-
State
public State(net.minecraft.client.renderer.state.gui.GuiItemRenderState item, int x0, int y0, int x1, int y1, float scale, org.joml.Matrix3x2f pose, int tint) Creates an instance of aStaterecord class.- Parameters:
item- the value for theitemrecord componentx0- the value for thex0record componenty0- the value for they0record componentx1- the value for thex1record componenty1- the value for they1record componentscale- the value for thescalerecord componentpose- the value for theposerecord componenttint- the value for thetintrecord component
-
-
Method Details
-
scissorArea
public @Nullable net.minecraft.client.gui.navigation.ScreenRectangle scissorArea()- Specified by:
scissorAreain interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState
-
bounds
public @Nullable net.minecraft.client.gui.navigation.ScreenRectangle bounds()- Specified by:
boundsin interfacenet.minecraft.client.renderer.state.gui.ScreenArea
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
item
public net.minecraft.client.renderer.state.gui.GuiItemRenderState item()Returns the value of theitemrecord component.- Returns:
- the value of the
itemrecord component
-
x0
public int x0()Returns the value of thex0record component.- Specified by:
x0in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
x0record component
-
y0
public int y0()Returns the value of they0record component.- Specified by:
y0in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
y0record component
-
x1
public int x1()Returns the value of thex1record component.- Specified by:
x1in interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
x1record component
-
y1
public int y1()Returns the value of they1record component.- Specified by:
y1in interfacenet.minecraft.client.renderer.state.gui.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.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
scalerecord component
-
pose
public org.joml.Matrix3x2f pose()Returns the value of theposerecord component.- Specified by:
posein interfacenet.minecraft.client.renderer.state.gui.pip.PictureInPictureRenderState- Returns:
- the value of the
poserecord component
-
tint
public int tint()Returns the value of thetintrecord component.- Returns:
- the value of the
tintrecord component
-