Package net.minecraft.world.debug.gizmo
Record Class LineGizmo
java.lang.Object
java.lang.Record
net.minecraft.world.debug.gizmo.LineGizmo
- Record Components:
start-end-color-width-
- All Implemented Interfaces:
Gizmo
public record LineGizmo(Vec3d start, Vec3d end, int color, float width)
extends Record
implements Gizmo
- Mappings:
Namespace Name named net/minecraft/world/debug/gizmo/LineGizmointermediary net/minecraft/class_12182official usnamed startintermediary comp_5103official bnamed endintermediary comp_5104official cnamed colorintermediary comp_5105official dnamed widthintermediary comp_5106official e
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.voiddraw(GizmoDrawer consumer, float float2) end()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.floatwidth()Returns the value of thewidthrecord component.
-
Field Details
-
start
The field for thestartrecord component. -
end
The field for theendrecord component. -
color
private final int colorThe field for thecolorrecord component. -
width
private final float widthThe field for thewidthrecord component. -
field_63659
public static final float field_63659- See Also:
- Mappings:
Namespace Name Mixin selector named field_63659Lnet/minecraft/world/debug/gizmo/LineGizmo;field_63659:Fintermediary field_63659Lnet/minecraft/class_12182;field_63659:Fofficial aLus;a:F
-
-
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 '=='. -
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
width
public float width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-