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 primitives, float alphaMultiplier) 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
-
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
-