Record Class ArrowGizmo
java.lang.Object
java.lang.Record
net.minecraft.gizmos.ArrowGizmo
- All Implemented Interfaces:
Gizmo
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionArrowGizmo(Vec3 start, Vec3 end, int color, float width) Creates an instance of aArrowGizmorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolor()Returns the value of thecolorrecord component.voidemit(GizmoPrimitives primitives, float alphaMultiplier) 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. -
DEFAULT_WIDTH
public static final float DEFAULT_WIDTH- See Also:
-
-
Constructor Details
-
ArrowGizmo
Creates an instance of aArrowGizmorecord class.- Parameters:
start- the value for thestartrecord componentend- the value for theendrecord componentcolor- the value for thecolorrecord componentwidth- the value for thewidthrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-