Package net.minecraft.gizmos
Record Class RectGizmo
java.lang.Object
java.lang.Record
net.minecraft.gizmos.RectGizmo
- All Implemented Interfaces:
Gizmo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Vec3The field for thearecord component.private final Vec3The field for thebrecord component.private final Vec3The field for thecrecord component.private final Vec3The field for thedrecord component.private final GizmoStyleThe field for thestylerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiona()Returns the value of thearecord component.b()Returns the value of thebrecord component.c()Returns the value of thecrecord component.d()Returns the value of thedrecord component.voidemit(GizmoPrimitives p_455410_, float p_458133_) final booleanIndicates whether some other object is "equal to" this one.static RectGizmofromCuboidFace(Vec3 pCorner1, Vec3 pCorner2, Direction pFace, GizmoStyle pStyle) final inthashCode()Returns a hash code value for this object.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
a
The field for thearecord component. -
b
The field for thebrecord component. -
c
The field for thecrecord component. -
d
The field for thedrecord component. -
style
The field for thestylerecord component.
-
-
Constructor Details
-
RectGizmo
Creates an instance of aRectGizmorecord class.- Parameters:
a- the value for thearecord componentb- the value for thebrecord componentc- the value for thecrecord componentd- the value for thedrecord componentstyle- the value for thestylerecord component
-
-
Method Details
-
fromCuboidFace
public static RectGizmo fromCuboidFace(Vec3 pCorner1, Vec3 pCorner2, Direction pFace, GizmoStyle pStyle) -
emit
-
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). -
a
Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
b
Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
c
Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-
d
Returns the value of thedrecord component.- Returns:
- the value of the
drecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-