Package net.minecraft.world.debug.gizmo
Record Class BoxGizmo
java.lang.Object
java.lang.Record
net.minecraft.world.debug.gizmo.BoxGizmo
- Record Components:
aabb-style-coloredCornerStroke-
- All Implemented Interfaces:
Gizmo
public record BoxGizmo(Box aabb, DrawStyle style, boolean coloredCornerStroke)
extends Record
implements Gizmo
- Mappings:
Namespace Name named net/minecraft/world/debug/gizmo/BoxGizmointermediary net/minecraft/class_12174official ulnamed aabbintermediary comp_5097official anamed styleintermediary comp_5098official bnamed coloredCornerStrokeintermediary comp_5099official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BoxThe field for theaabbrecord component.private final booleanThe field for thecoloredCornerStrokerecord component.private final DrawStyleThe field for thestylerecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaabb()Returns the value of theaabbrecord component.booleanReturns the value of thecoloredCornerStrokerecord component.voiddraw(GizmoDrawer consumer, float float2) 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
-
BoxGizmo
Creates an instance of aBoxGizmorecord class.- Parameters:
aabb- the value for theaabbrecord componentstyle- the value for thestylerecord componentcoloredCornerStroke- the value for thecoloredCornerStrokerecord component
-
-
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 '=='. -
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
-