Package net.minecraft.world.debug.gizmo
Record Class TextGizmo
java.lang.Object
java.lang.Record
net.minecraft.world.debug.gizmo.TextGizmo
- Record Components:
pos-text-style-
- All Implemented Interfaces:
Gizmo
public record TextGizmo(Vec3d pos, String text, TextGizmo.Style style)
extends Record
implements Gizmo
- Mappings:
Namespace Name named net/minecraft/world/debug/gizmo/TextGizmointermediary net/minecraft/class_12187official uwnamed posintermediary comp_5115official anamed textintermediary comp_5116official bnamed styleintermediary comp_5117official c
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextGizmo(Vec3d pos, String text, TextGizmo.Style style) Creates an instance of aTextGizmorecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(GizmoDrawer consumer, float float2) 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
-
Constructor Details
-
Method Details
-
draw
- Specified by:
drawin interfaceGizmo- Mappings:
Namespace Name Mixin selector named drawLnet/minecraft/world/debug/gizmo/Gizmo;draw(Lnet/minecraft/world/debug/gizmo/GizmoDrawer;F)Vintermediary method_75531Lnet/minecraft/class_12175;method_75531(Lnet/minecraft/class_12177;F)Vofficial aLum;a(Luo;F)V
-
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. 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
-