Record Class TextGizmo
java.lang.Object
java.lang.Record
net.minecraft.gizmos.TextGizmo
- All Implemented Interfaces:
Gizmo
public record TextGizmo(Vec3 pos, String text, TextGizmo.Style style)
extends Record
implements Gizmo
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextGizmo(Vec3 pos, String text, TextGizmo.Style style) Creates an instance of aTextGizmorecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidemit(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.style()Returns the value of thestylerecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
pos
The field for theposrecord component. -
text
The field for thetextrecord component. -
style
The field for thestylerecord component.
-
-
Constructor Details
-
TextGizmo
Creates an instance of aTextGizmorecord class.- Parameters:
pos- the value for theposrecord componenttext- the value for thetextrecord componentstyle- the value for thestylerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-