Record Class DrawableGizmoPrimitives.Point
java.lang.Object
java.lang.Record
net.minecraft.client.renderer.gizmos.DrawableGizmoPrimitives.Point
- Enclosing class:
DrawableGizmoPrimitives
-
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.pos()Returns the value of theposrecord component.floatsize()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
color
private final int colorThe field for thecolorrecord component. -
size
private final float sizeThe field for thesizerecord component.
-
-
Constructor Details
-
Point
Creates an instance of aPointrecord class.- Parameters:
pos- the value for theposrecord componentcolor- the value for thecolorrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
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. -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
size
public float size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-