Package net.minecraft.client.render
Record Class DrawStyle
java.lang.Object
java.lang.Record
net.minecraft.client.render.DrawStyle
- Record Components:
stroke-strokeWidth-fill-
- Mappings:
Namespace Name named net/minecraft/client/render/DrawStyleintermediary net/minecraft/class_12179official uqnamed strokeintermediary comp_5100official anamed strokeWidthintermediary comp_5101official bnamed fillintermediary comp_5102official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final floatprivate final intThe field for thefillrecord component.private final intThe field for thestrokerecord component.private final floatThe field for thestrokeWidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDrawStyle(int stroke, float strokeWidth, int fill) Creates an instance of aDrawStylerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfill()Returns the value of thefillrecord component.intfill(float opacity) static DrawStylefilled(int fill) static DrawStylefilledAndStroked(int stroke, float strokeWidth, int fill) booleanhasFill()final inthashCode()Returns a hash code value for this object.booleanintstroke()Returns the value of thestrokerecord component.intstroke(float opacity) static DrawStylestroked(int stroke) static DrawStylestroked(int stroke, float strokeWidth) floatReturns the value of thestrokeWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
stroke
private final int strokeThe field for thestrokerecord component. -
strokeWidth
private final float strokeWidthThe field for thestrokeWidthrecord component. -
fill
private final int fillThe field for thefillrecord component. -
DEFAULT_STROKE_WIDTH
private static final float DEFAULT_STROKE_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_STROKE_WIDTHLnet/minecraft/client/render/DrawStyle;DEFAULT_STROKE_WIDTH:Fintermediary field_63655Lnet/minecraft/class_12179;field_63655:Fofficial dLuq;d:F
-
-
Constructor Details
-
DrawStyle
public DrawStyle(int stroke, float strokeWidth, int fill) Creates an instance of aDrawStylerecord class.- Parameters:
stroke- the value for thestrokerecord componentstrokeWidth- the value for thestrokeWidthrecord componentfill- the value for thefillrecord component
-
-
Method Details
-
stroked
- Mappings:
Namespace Name Mixin selector named strokedLnet/minecraft/client/render/DrawStyle;stroked(I)Lnet/minecraft/client/render/DrawStyle;intermediary method_75535Lnet/minecraft/class_12179;method_75535(I)Lnet/minecraft/class_12179;official aLuq;a(I)Luq;
-
stroked
- Mappings:
Namespace Name Mixin selector named strokedLnet/minecraft/client/render/DrawStyle;stroked(IF)Lnet/minecraft/client/render/DrawStyle;intermediary method_75536Lnet/minecraft/class_12179;method_75536(IF)Lnet/minecraft/class_12179;official aLuq;a(IF)Luq;
-
filled
- Mappings:
Namespace Name Mixin selector named filledLnet/minecraft/client/render/DrawStyle;filled(I)Lnet/minecraft/client/render/DrawStyle;intermediary method_75539Lnet/minecraft/class_12179;method_75539(I)Lnet/minecraft/class_12179;official bLuq;b(I)Luq;
-
filledAndStroked
- Mappings:
Namespace Name Mixin selector named filledAndStrokedLnet/minecraft/client/render/DrawStyle;filledAndStroked(IFI)Lnet/minecraft/client/render/DrawStyle;intermediary method_75537Lnet/minecraft/class_12179;method_75537(IFI)Lnet/minecraft/class_12179;official aLuq;a(IFI)Luq;
-
hasFill
public boolean hasFill()- Mappings:
Namespace Name Mixin selector named hasFillLnet/minecraft/client/render/DrawStyle;hasFill()Zintermediary method_75534Lnet/minecraft/class_12179;method_75534()Zofficial aLuq;a()Z
-
hasStroke
public boolean hasStroke()- Mappings:
Namespace Name Mixin selector named hasStrokeLnet/minecraft/client/render/DrawStyle;hasStroke()Zintermediary method_75538Lnet/minecraft/class_12179;method_75538()Zofficial bLuq;b()Z
-
stroke
public int stroke(float opacity) - Mappings:
Namespace Name Mixin selector named strokeLnet/minecraft/client/render/DrawStyle;stroke(F)Iintermediary method_75853Lnet/minecraft/class_12179;method_75853(F)Iofficial aLuq;a(F)I
-
fill
public int fill(float opacity) - Mappings:
Namespace Name Mixin selector named fillLnet/minecraft/client/render/DrawStyle;fill(F)Iintermediary method_75854Lnet/minecraft/class_12179;method_75854(F)Iofficial bLuq;b(F)I
-
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. All components in this record class are compared with '=='. -
stroke
public int stroke()Returns the value of thestrokerecord component.- Returns:
- the value of the
strokerecord component
-
strokeWidth
public float strokeWidth()Returns the value of thestrokeWidthrecord component.- Returns:
- the value of the
strokeWidthrecord component
-
fill
public int fill()Returns the value of thefillrecord component.- Returns:
- the value of the
fillrecord component
-