Record Class DrawStyle

java.lang.Object
java.lang.Record
net.minecraft.client.render.DrawStyle
Record Components:
stroke -
strokeWidth -
fill -

public record DrawStyle(int stroke, float strokeWidth, int fill) extends Record
Mappings:
Namespace Name
named net/minecraft/client/render/DrawStyle
intermediary net/minecraft/class_12179
official uq
named stroke
intermediary comp_5100
official a
named strokeWidth
intermediary comp_5101
official b
named fill
intermediary comp_5102
official c
  • Field Details

    • stroke

      private final int stroke
      The field for the stroke record component.
    • strokeWidth

      private final float strokeWidth
      The field for the strokeWidth record component.
    • fill

      private final int fill
      The field for the fill record component.
    • DEFAULT_STROKE_WIDTH

      private static final float DEFAULT_STROKE_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_STROKE_WIDTH Lnet/minecraft/client/render/DrawStyle;DEFAULT_STROKE_WIDTH:F
      intermediary field_63655 Lnet/minecraft/class_12179;field_63655:F
      official d Luq;d:F
  • Constructor Details

    • DrawStyle

      public DrawStyle(int stroke, float strokeWidth, int fill)
      Creates an instance of a DrawStyle record class.
      Parameters:
      stroke - the value for the stroke record component
      strokeWidth - the value for the strokeWidth record component
      fill - the value for the fill record component
  • Method Details

    • stroked

      public static DrawStyle stroked(int stroke)
      Mappings:
      Namespace Name Mixin selector
      named stroked Lnet/minecraft/client/render/DrawStyle;stroked(I)Lnet/minecraft/client/render/DrawStyle;
      intermediary method_75535 Lnet/minecraft/class_12179;method_75535(I)Lnet/minecraft/class_12179;
      official a Luq;a(I)Luq;
    • stroked

      public static DrawStyle stroked(int stroke, float strokeWidth)
      Mappings:
      Namespace Name Mixin selector
      named stroked Lnet/minecraft/client/render/DrawStyle;stroked(IF)Lnet/minecraft/client/render/DrawStyle;
      intermediary method_75536 Lnet/minecraft/class_12179;method_75536(IF)Lnet/minecraft/class_12179;
      official a Luq;a(IF)Luq;
    • filled

      public static DrawStyle filled(int fill)
      Mappings:
      Namespace Name Mixin selector
      named filled Lnet/minecraft/client/render/DrawStyle;filled(I)Lnet/minecraft/client/render/DrawStyle;
      intermediary method_75539 Lnet/minecraft/class_12179;method_75539(I)Lnet/minecraft/class_12179;
      official b Luq;b(I)Luq;
    • filledAndStroked

      public static DrawStyle filledAndStroked(int stroke, float strokeWidth, int fill)
      Mappings:
      Namespace Name Mixin selector
      named filledAndStroked Lnet/minecraft/client/render/DrawStyle;filledAndStroked(IFI)Lnet/minecraft/client/render/DrawStyle;
      intermediary method_75537 Lnet/minecraft/class_12179;method_75537(IFI)Lnet/minecraft/class_12179;
      official a Luq;a(IFI)Luq;
    • hasFill

      public boolean hasFill()
      Mappings:
      Namespace Name Mixin selector
      named hasFill Lnet/minecraft/client/render/DrawStyle;hasFill()Z
      intermediary method_75534 Lnet/minecraft/class_12179;method_75534()Z
      official a Luq;a()Z
    • hasStroke

      public boolean hasStroke()
      Mappings:
      Namespace Name Mixin selector
      named hasStroke Lnet/minecraft/client/render/DrawStyle;hasStroke()Z
      intermediary method_75538 Lnet/minecraft/class_12179;method_75538()Z
      official b Luq;b()Z
    • method_75853

      public int method_75853(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75853 Lnet/minecraft/client/render/DrawStyle;method_75853(F)I
      intermediary method_75853 Lnet/minecraft/class_12179;method_75853(F)I
      official a Luq;a(F)I
    • method_75854

      public int method_75854(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75854 Lnet/minecraft/client/render/DrawStyle;method_75854(F)I
      intermediary method_75854 Lnet/minecraft/class_12179;method_75854(F)I
      official b Luq;b(F)I
    • 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. All components in this record class 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.
    • stroke

      public int stroke()
      Returns the value of the stroke record component.
      Returns:
      the value of the stroke record component
    • strokeWidth

      public float strokeWidth()
      Returns the value of the strokeWidth record component.
      Returns:
      the value of the strokeWidth record component
    • fill

      public int fill()
      Returns the value of the fill record component.
      Returns:
      the value of the fill record component