Record Class PlayerDisplayGuiElementRenderState
java.lang.Object
java.lang.Record
net.litetex.capes.menu.preview.render.PlayerDisplayGuiElementRenderState
- All Implemented Interfaces:
net.minecraft.client.gui.render.state.GuiElementRenderState,net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
public record PlayerDisplayGuiElementRenderState(PlayerDisplayGuiModels models, PlayerDisplayGuiPayload payload, float xRotation, float yRotation, float yPivot, int x1, int y1, int x2, int y2, float scale, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds)
extends Record
implements net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState
pose -
Constructor Summary
ConstructorsConstructorDescriptionPlayerDisplayGuiElementRenderState(PlayerDisplayGuiModels models, PlayerDisplayGuiPayload payload, float xRotation, float yRotation, float yPivot, int x1, int y1, int x2, int y2, float scale, @Nullable net.minecraft.client.gui.ScreenRect screenRect) PlayerDisplayGuiElementRenderState(PlayerDisplayGuiModels models, PlayerDisplayGuiPayload payload, float xRotation, float yRotation, float yPivot, int x1, int y1, int x2, int y2, float scale, @Nullable net.minecraft.client.gui.ScreenRect scissorArea, @Nullable net.minecraft.client.gui.ScreenRect bounds) Creates an instance of aPlayerDisplayGuiElementRenderStaterecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable net.minecraft.client.gui.ScreenRectbounds()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.models()Returns the value of themodelsrecord component.payload()Returns the value of thepayloadrecord component.floatscale()Returns the value of thescalerecord component.@Nullable net.minecraft.client.gui.ScreenRectReturns the value of thescissorArearecord component.final StringtoString()Returns a string representation of this record class.intx1()Returns the value of thex1record component.intx2()Returns the value of thex2record component.floatReturns the value of thexRotationrecord component.inty1()Returns the value of they1record component.inty2()Returns the value of they2record component.floatyPivot()Returns the value of theyPivotrecord component.floatReturns the value of theyRotationrecord 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.special.SpecialGuiElementRenderState
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 '=='. -
models
Returns the value of themodelsrecord component.- Returns:
- the value of the
modelsrecord component
-
payload
Returns the value of thepayloadrecord component.- Returns:
- the value of the
payloadrecord component
-
xRotation
public float xRotation()Returns the value of thexRotationrecord component.- Returns:
- the value of the
xRotationrecord component
-
yRotation
public float yRotation()Returns the value of theyRotationrecord component.- Returns:
- the value of the
yRotationrecord component
-
yPivot
public float yPivot()Returns the value of theyPivotrecord component.- Returns:
- the value of the
yPivotrecord component
-
x1
public int x1()Returns the value of thex1record component.- Specified by:
x1in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
x1record component
-
y1
public int y1()Returns the value of they1record component.- Specified by:
y1in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
y1record component
-
x2
public int x2()Returns the value of thex2record component.- Specified by:
x2in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
x2record component
-
y2
public int y2()Returns the value of they2record component.- Specified by:
y2in interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
y2record component
-
scale
public float scale()Returns the value of thescalerecord component.- Specified by:
scalein interfacenet.minecraft.client.gui.render.state.special.SpecialGuiElementRenderState- Returns:
- the value of the
scalerecord 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.special.SpecialGuiElementRenderState- 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
-