Package net.minecraft.gizmos
Record Class PointGizmo
java.lang.Object
java.lang.Record
net.minecraft.gizmos.PointGizmo
- All Implemented Interfaces:
Gizmo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPointGizmo(Vec3 pos, int color, float size) Creates an instance of aPointGizmorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.voidemit(GizmoPrimitives p_455469_, float p_457615_) 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
-
PointGizmo
Creates an instance of aPointGizmorecord class.- Parameters:
pos- the value for theposrecord componentcolor- the value for thecolorrecord componentsize- the value for thesizerecord component
-
-
Method Details
-
emit
-
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 '=='. -
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
-