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$Style
intermediary net/minecraft/class_12187$class_12188
official uw$a
named color
intermediary comp_5118
official b
named scale
intermediary comp_5119
official c
named adjustLeft
intermediary comp_5120
official d
  • Field Details

    • color

      private final int color
      The field for the color record component.
    • scale

      private final float scale
      The field for the scale record component.
    • adjustLeft

      private final OptionalDouble adjustLeft
      The field for the adjustLeft record component.
    • DEFAULT_SCALE

      public static final float DEFAULT_SCALE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SCALE Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;DEFAULT_SCALE:F
      intermediary field_63664 Lnet/minecraft/class_12187$class_12188;field_63664:F
      official a Luw$a;a:F
  • Constructor Details

    • Style

      public Style(int color, float scale, OptionalDouble adjustLeft)
      Creates an instance of a Style record class.
      Parameters:
      color - the value for the color record component
      scale - the value for the scale record component
      adjustLeft - the value for the adjustLeft record component
  • Method Details

    • left

      public static TextGizmo.Style left()
      Mappings:
      Namespace Name Mixin selector
      named left Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;left()Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;
      intermediary method_75564 Lnet/minecraft/class_12187$class_12188;method_75564()Lnet/minecraft/class_12187$class_12188;
      official a Luw$a;a()Luw$a;
    • left

      public static TextGizmo.Style left(int color)
      Mappings:
      Namespace Name Mixin selector
      named left Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;left(I)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;
      intermediary method_75566 Lnet/minecraft/class_12187$class_12188;method_75566(I)Lnet/minecraft/class_12187$class_12188;
      official a Luw$a;a(I)Luw$a;
    • centered

      public static TextGizmo.Style centered(int color)
      Mappings:
      Namespace Name Mixin selector
      named centered Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;centered(I)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;
      intermediary method_75568 Lnet/minecraft/class_12187$class_12188;method_75568(I)Lnet/minecraft/class_12187$class_12188;
      official b Luw$a;b(I)Luw$a;
    • scaled

      public TextGizmo.Style scaled(float scale)
      Mappings:
      Namespace Name Mixin selector
      named scaled Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;scaled(F)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;
      intermediary method_75565 Lnet/minecraft/class_12187$class_12188;method_75565(F)Lnet/minecraft/class_12187$class_12188;
      official a Luw$a;a(F)Luw$a;
    • adjusted

      public TextGizmo.Style adjusted(float adjustLeft)
      Mappings:
      Namespace Name Mixin selector
      named adjusted Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;adjusted(F)Lnet/minecraft/world/debug/gizmo/TextGizmo$Style;
      intermediary method_75567 Lnet/minecraft/class_12187$class_12188;method_75567(F)Lnet/minecraft/class_12187$class_12188;
      official b Luw$a;b(F)Luw$a;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • color

      public int color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • scale

      public float scale()
      Returns the value of the scale record component.
      Returns:
      the value of the scale record component
    • adjustLeft

      public OptionalDouble adjustLeft()
      Returns the value of the adjustLeft record component.
      Returns:
      the value of the adjustLeft record component