Record Class GizmoDrawerImpl.Line
java.lang.Object
java.lang.Record
net.minecraft.client.render.gizmo.GizmoDrawerImpl.Line
- Record Components:
start-end-color-width-
- Enclosing class:
GizmoDrawerImpl
@Environment(CLIENT)
private static record GizmoDrawerImpl.Line(Vec3d start, Vec3d end, int color, float width)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/gizmo/GizmoDrawerImpl$Lineintermediary net/minecraft/class_12160$class_12161official ibs$anamed startintermediary comp_5070official anamed endintermediary comp_5071official bnamed colorintermediary comp_5072official cnamed widthintermediary comp_5073official d
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.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
-
Constructor Details
-
Method Details
-
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
-