Package net.minecraft.util.math
Class ColorHelper.Argb
java.lang.Object
net.minecraft.util.math.ColorHelper.Argb
- Enclosing class:
ColorHelper
Contains color-related helper methods that use ARGB colors represented
as
0xAARRGGBB
.- Mappings:
Namespace Name named net/minecraft/util/math/ColorHelper$Argb
intermediary net/minecraft/class_5253$class_5254
official axq$b
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
fromFloats
(float a, float r, float g, float b) static int
fullAlpha
(int argb) static int
getAlpha
(int argb) Returns the alpha value ofargb
.static int
getArgb
(int red, int green, int blue) static int
getArgb
(int alpha, int red, int green, int blue) Returns the ARGB color value from its components.static int
getBlue
(int argb) Returns the blue value ofargb
.static int
getGreen
(int argb) Returns the green value ofargb
.static int
getRed
(int argb) Returns the red value ofargb
.static int
lerp
(float delta, int start, int end) static int
mixColor
(int first, int second) static int
withAlpha
(int alpha, int rgb)
-
Constructor Details
-
Argb
public Argb()
-
-
Method Details
-
getAlpha
public static int getAlpha(int argb) Returns the alpha value ofargb
.The returned value is between
0
and255
(both inclusive).- Returns:
- the alpha value of
argb
- Mappings:
Namespace Name Mixin selector named getAlpha
Lnet/minecraft/util/math/ColorHelper$Argb;getAlpha(I)I
intermediary method_27762
Lnet/minecraft/class_5253$class_5254;method_27762(I)I
official a
Laxq$b;a(I)I
-
getRed
public static int getRed(int argb) Returns the red value ofargb
.The returned value is between
0
and255
(both inclusive).- Returns:
- the red value of
argb
- Mappings:
Namespace Name Mixin selector named getRed
Lnet/minecraft/util/math/ColorHelper$Argb;getRed(I)I
intermediary method_27765
Lnet/minecraft/class_5253$class_5254;method_27765(I)I
official b
Laxq$b;b(I)I
-
getGreen
public static int getGreen(int argb) Returns the green value ofargb
.The returned value is between
0
and255
(both inclusive).- Returns:
- the green value of
argb
- Mappings:
Namespace Name Mixin selector named getGreen
Lnet/minecraft/util/math/ColorHelper$Argb;getGreen(I)I
intermediary method_27766
Lnet/minecraft/class_5253$class_5254;method_27766(I)I
official c
Laxq$b;c(I)I
-
getBlue
public static int getBlue(int argb) Returns the blue value ofargb
.The returned value is between
0
and255
(both inclusive).- Returns:
- the blue value of
argb
- Mappings:
Namespace Name Mixin selector named getBlue
Lnet/minecraft/util/math/ColorHelper$Argb;getBlue(I)I
intermediary method_27767
Lnet/minecraft/class_5253$class_5254;method_27767(I)I
official d
Laxq$b;d(I)I
-
getArgb
public static int getArgb(int alpha, int red, int green, int blue) Returns the ARGB color value from its components.- Returns:
- the ARGB color value from its components
- Mappings:
Namespace Name Mixin selector named getArgb
Lnet/minecraft/util/math/ColorHelper$Argb;getArgb(IIII)I
intermediary method_27764
Lnet/minecraft/class_5253$class_5254;method_27764(IIII)I
official a
Laxq$b;a(IIII)I
-
getArgb
public static int getArgb(int red, int green, int blue) - Mappings:
Namespace Name Mixin selector named getArgb
Lnet/minecraft/util/math/ColorHelper$Argb;getArgb(III)I
intermediary method_57173
Lnet/minecraft/class_5253$class_5254;method_57173(III)I
official a
Laxq$b;a(III)I
-
mixColor
public static int mixColor(int first, int second) - Mappings:
Namespace Name Mixin selector named mixColor
Lnet/minecraft/util/math/ColorHelper$Argb;mixColor(II)I
intermediary method_27763
Lnet/minecraft/class_5253$class_5254;method_27763(II)I
official a
Laxq$b;a(II)I
-
lerp
public static int lerp(float delta, int start, int end) - Mappings:
Namespace Name Mixin selector named lerp
Lnet/minecraft/util/math/ColorHelper$Argb;lerp(FII)I
intermediary method_48780
Lnet/minecraft/class_5253$class_5254;method_48780(FII)I
official a
Laxq$b;a(FII)I
-
fullAlpha
public static int fullAlpha(int argb) - Mappings:
Namespace Name Mixin selector named fullAlpha
Lnet/minecraft/util/math/ColorHelper$Argb;fullAlpha(I)I
intermediary method_57174
Lnet/minecraft/class_5253$class_5254;method_57174(I)I
official e
Laxq$b;e(I)I
-
withAlpha
public static int withAlpha(int alpha, int rgb) - Mappings:
Namespace Name Mixin selector named withAlpha
Lnet/minecraft/util/math/ColorHelper$Argb;withAlpha(II)I
intermediary method_58144
Lnet/minecraft/class_5253$class_5254;method_58144(II)I
official b
Laxq$b;b(II)I
-
fromFloats
public static int fromFloats(float a, float r, float g, float b) - Mappings:
Namespace Name Mixin selector named fromFloats
Lnet/minecraft/util/math/ColorHelper$Argb;fromFloats(FFFF)I
intermediary method_59554
Lnet/minecraft/class_5253$class_5254;method_59554(FFFF)I
official a
Laxq$b;a(FFFF)I
-