Package net.minecraft.world.debug.gizmo
Record Class TextGizmo.Style
java.lang.Object
java.lang.Record
net.minecraft.world.debug.gizmo.TextGizmo.Style
- Record Components:
color-scale-adjustLeft-
- Enclosing class:
TextGizmo
public static record TextGizmo.Style(int color, float scale, OptionalDouble adjustLeft)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/debug/gizmo/TextGizmo$Styleintermediary net/minecraft/class_12187$class_12188official uw$anamed colorintermediary comp_5118official bnamed scaleintermediary comp_5119official cnamed adjustLeftintermediary comp_5120official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OptionalDoubleThe field for theadjustLeftrecord component.private final intThe field for thecolorrecord component.static final floatprivate final floatThe field for thescalerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStyle(int color, float scale, OptionalDouble adjustLeft) Creates an instance of aStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptionadjusted(float adjustLeft) Returns the value of theadjustLeftrecord component.static TextGizmo.Stylecentered(int color) intcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static TextGizmo.Styleleft()static TextGizmo.Styleleft(int color) floatscale()Returns the value of thescalerecord component.scaled(float scale) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
color
private final int colorThe field for thecolorrecord component. -
scale
private final float scaleThe field for thescalerecord component. -
adjustLeft
The field for theadjustLeftrecord component. -
DEFAULT_SCALE
public static final float DEFAULT_SCALE- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SCALELnet/minecraft/world/debug/gizmo/TextGizmo$Style;DEFAULT_SCALE:Fintermediary field_63664Lnet/minecraft/class_12187$class_12188;field_63664:Fofficial aLuw$a;a:F
-
-
Constructor Details
-
Style
Creates an instance of aStylerecord class.- Parameters:
color- the value for thecolorrecord componentscale- the value for thescalerecord componentadjustLeft- the value for theadjustLeftrecord component
-
-
Method Details
-
left
- Mappings:
Namespace Name Mixin selector named leftLnet/minecraft/world/debug/gizmo/TextGizmo$Style;left()Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;intermediary method_75564Lnet/minecraft/class_12187$class_12188;method_75564()Lnet/minecraft/class_12187$class_12188;official aLuw$a;a()Luw$a;
-
left
- Mappings:
Namespace Name Mixin selector named leftLnet/minecraft/world/debug/gizmo/TextGizmo$Style;left(I)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;intermediary method_75566Lnet/minecraft/class_12187$class_12188;method_75566(I)Lnet/minecraft/class_12187$class_12188;official aLuw$a;a(I)Luw$a;
-
centered
- Mappings:
Namespace Name Mixin selector named centeredLnet/minecraft/world/debug/gizmo/TextGizmo$Style;centered(I)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;intermediary method_75568Lnet/minecraft/class_12187$class_12188;method_75568(I)Lnet/minecraft/class_12187$class_12188;official bLuw$a;b(I)Luw$a;
-
scaled
- Mappings:
Namespace Name Mixin selector named scaledLnet/minecraft/world/debug/gizmo/TextGizmo$Style;scaled(F)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;intermediary method_75565Lnet/minecraft/class_12187$class_12188;method_75565(F)Lnet/minecraft/class_12187$class_12188;official aLuw$a;a(F)Luw$a;
-
adjusted
- Mappings:
Namespace Name Mixin selector named adjustedLnet/minecraft/world/debug/gizmo/TextGizmo$Style;adjusted(F)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;intermediary method_75567Lnet/minecraft/class_12187$class_12188;method_75567(F)Lnet/minecraft/class_12187$class_12188;official bLuw$a;b(F)Luw$a;
-
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 '=='. -
color
public int color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
scale
public float scale()Returns the value of thescalerecord component.- Returns:
- the value of the
scalerecord component
-
adjustLeft
Returns the value of theadjustLeftrecord component.- Returns:
- the value of the
adjustLeftrecord component
-