Record Class ItemGuiElementRenderState
java.lang.Object
java.lang.Record
net.minecraft.client.gui.render.state.ItemGuiElementRenderState
- Record Components:
name-pose-itemStackRenderState-x-y-scissorArea-bounds-
- All Implemented Interfaces:
ElementRenderState
@Environment(CLIENT)
public record ItemGuiElementRenderState(String name, Matrix3x2f pose, ItemRenderState itemStackRenderState, int x, int y, @Nullable ScreenRect scissorArea, @Nullable ScreenRect bounds)
extends Record
implements ElementRenderState
- Mappings:
Namespace Name named net/minecraft/client/gui/render/state/ItemGuiElementRenderStateintermediary net/minecraft/class_11245official garnamed nameintermediary comp_4090official anamed poseintermediary comp_4091official bnamed itemStackRenderStateintermediary comp_4092official cnamed xintermediary comp_4093official dnamed yintermediary comp_4094official enamed scissorAreaintermediary comp_4097official fnamed boundsintermediary comp_4274official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable ScreenRectThe field for theboundsrecord component.private final ItemRenderStateThe field for theitemStackRenderStaterecord component.private final StringThe field for thenamerecord component.private final Matrix3x2fThe field for theposerecord component.private final @Nullable ScreenRectThe field for thescissorArearecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionItemGuiElementRenderState(String name, Matrix3x2f pose, ItemRenderState itemStackRenderState, int x, int y, @Nullable ScreenRect scissorArea) ItemGuiElementRenderState(String string, Matrix3x2f matrix3x2f, ItemRenderState itemRenderState, int int2, int int3, @Nullable ScreenRect screenRect, @Nullable ScreenRect screenRect2) -
Method Summary
Modifier and TypeMethodDescriptionbounds()Returns the value of theboundsrecord component.static @Nullable ScreenRectcreateBounds(int x, int y, Matrix3x2f pose, @Nullable ScreenRect scissorArea) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theitemStackRenderStaterecord component.name()Returns the value of thenamerecord component.pose()Returns the value of theposerecord component.Returns the value of thescissorArearecord component.final StringtoString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
pose
The field for theposerecord component. -
itemStackRenderState
The field for theitemStackRenderStaterecord component. -
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
scissorArea
The field for thescissorArearecord component. -
bounds
The field for theboundsrecord component.
-
-
Constructor Details
-
ItemGuiElementRenderState
public ItemGuiElementRenderState(String name, Matrix3x2f pose, ItemRenderState itemStackRenderState, int x, int y, @Nullable @Nullable ScreenRect scissorArea) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/render/state/ItemGuiElementRenderState;<init>(Ljava/lang/String;Lorg/joml/Matrix3x2f;Lnet/minecraft/client/render/item/ItemRenderState;IILnet/minecraft/client/gui/ScreenRect;)Vintermediary <init>Lnet/minecraft/class_11245;<init>(Ljava/lang/String;Lorg/joml/Matrix3x2f;Lnet/minecraft/class_10444;IILnet/minecraft/class_8030;)Vofficial <init>Lgar;<init>(Ljava/lang/String;Lorg/joml/Matrix3x2f;Lhks;IILfzz;)V
-
ItemGuiElementRenderState
public ItemGuiElementRenderState(String string, Matrix3x2f matrix3x2f, ItemRenderState itemRenderState, int int2, int int3, @Nullable @Nullable ScreenRect screenRect, @Nullable @Nullable ScreenRect screenRect2)
-
-
Method Details
-
createBounds
@Nullable public static @Nullable ScreenRect createBounds(int x, int y, Matrix3x2f pose, @Nullable @Nullable ScreenRect scissorArea) - Mappings:
Namespace Name Mixin selector named createBoundsLnet/minecraft/client/gui/render/state/ItemGuiElementRenderState;createBounds(IILorg/joml/Matrix3x2f;Lnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/gui/ScreenRect;intermediary method_71528Lnet/minecraft/class_11245;method_71528(IILorg/joml/Matrix3x2f;Lnet/minecraft/class_8030;)Lnet/minecraft/class_8030;official aLgar;a(IILorg/joml/Matrix3x2f;Lfzz;)Lfzz;
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
pose
Returns the value of theposerecord component.- Returns:
- the value of the
poserecord component
-
itemStackRenderState
Returns the value of theitemStackRenderStaterecord component.- Returns:
- the value of the
itemStackRenderStaterecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
scissorArea
Returns the value of thescissorArearecord component.- Returns:
- the value of the
scissorArearecord component
-
bounds
Returns the value of theboundsrecord component.- Specified by:
boundsin interfaceElementRenderState- Returns:
- the value of the
boundsrecord component
-