Package net.minecraft.world.debug.gizmo
Record Class PointGizmo
java.lang.Object
java.lang.Record
net.minecraft.world.debug.gizmo.PointGizmo
- Record Components:
pos-color-size-
- All Implemented Interfaces:
Gizmo
- Mappings:
Namespace Name named net/minecraft/world/debug/gizmo/PointGizmointermediary net/minecraft/class_12183official utnamed posintermediary comp_5107official anamed colorintermediary comp_5108official bnamed sizeintermediary comp_5109official c
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPointGizmo(Vec3d pos, int color, float size) Creates an instance of aPointGizmorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.voiddraw(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.floatsize()Returns the value of thesizerecord 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. 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
-