Package net.minecraft.client.gui
Record Class DrawContext.StrokedRectangle
java.lang.Object
java.lang.Record
net.minecraft.client.gui.DrawContext.StrokedRectangle
- Record Components:
x-y-width-height-color-
- Enclosing class:
DrawContext
@Environment(CLIENT)
private static record DrawContext.StrokedRectangle(int x, int y, int width, int height, int color)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/gui/DrawContext$StrokedRectangleintermediary net/minecraft/class_332$class_11731official gdd$anamed xintermediary comp_4600official anamed yintermediary comp_4601official bnamed widthintermediary comp_4602official cnamed heightintermediary comp_4603official dnamed colorintermediary comp_4604official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for thecolorrecord component.private final intThe field for theheightrecord component.private final intThe field for thewidthrecord component.private final intThe field for thexrecord component.private final intThe field for theyrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.voiddraw(DrawContext context) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Field Details
-
x
private final int xThe field for thexrecord component. -
y
private final int yThe field for theyrecord component. -
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
color
private final int colorThe field for thecolorrecord component.
-
-
Constructor Details
-
StrokedRectangle
StrokedRectangle(int int2, int int3, int int4, int int5, int int6)
-
-
Method Details
-
draw
- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/client/gui/DrawContext$StrokedRectangle;draw(Lnet/minecraft/client/gui/DrawContext;)Vintermediary method_73200Lnet/minecraft/class_332$class_11731;method_73200(Lnet/minecraft/class_332;)Vofficial aLgdd$a;a(Lgdd;)V
-
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. All components in this record class are compared with '=='. -
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
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-