Record Class GizmoDrawerImpl.Polygon
java.lang.Object
java.lang.Record
net.minecraft.client.render.gizmo.GizmoDrawerImpl.Polygon
- Record Components:
points-color-
- Enclosing class:
GizmoDrawerImpl
@Environment(CLIENT)
private static record GizmoDrawerImpl.Polygon(Vec3d[] points, int color)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/gizmo/GizmoDrawerImpl$Polygonintermediary net/minecraft/class_12160$class_12165official ibs$enamed pointsintermediary comp_5085official anamed colorintermediary comp_5086official b
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Vec3d[]points()Returns the value of thepointsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
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 '=='. -
points
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-