Record Class CuboidGizmo
java.lang.Object
java.lang.Record
net.minecraft.gizmos.CuboidGizmo
- All Implemented Interfaces:
Gizmo
public record CuboidGizmo(AABB aabb, GizmoStyle style, boolean coloredCornerStroke)
extends Record
implements Gizmo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AABBThe field for theaabbrecord component.private final booleanThe field for thecoloredCornerStrokerecord component.private final GizmoStyleThe field for thestylerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCuboidGizmo(AABB aabb, GizmoStyle style, boolean coloredCornerStroke) Creates an instance of aCuboidGizmorecord class. -
Method Summary
Modifier and TypeMethodDescriptionaabb()Returns the value of theaabbrecord component.booleanReturns the value of thecoloredCornerStrokerecord component.voidemit(GizmoPrimitives primitives, float alphaMultiplier) final booleanIndicates whether some other object is "equal to" this one.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
-
aabb
The field for theaabbrecord component. -
style
The field for thestylerecord component. -
coloredCornerStroke
private final boolean coloredCornerStrokeThe field for thecoloredCornerStrokerecord component.
-
-
Constructor Details
-
CuboidGizmo
Creates an instance of aCuboidGizmorecord class.- Parameters:
aabb- the value for theaabbrecord componentstyle- the value for thestylerecord componentcoloredCornerStroke- the value for thecoloredCornerStrokerecord 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. -
aabb
Returns the value of theaabbrecord component.- Returns:
- the value of the
aabbrecord component
-
style
Returns the value of thestylerecord component.- Returns:
- the value of the
stylerecord component
-
coloredCornerStroke
public boolean coloredCornerStroke()Returns the value of thecoloredCornerStrokerecord component.- Returns:
- the value of the
coloredCornerStrokerecord component
-