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 official arh$b
intermediary net/minecraft/class_5253$class_5254
named net/minecraft/util/math/ColorHelper$Argb
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getAlpha
(int argb) Returns the alpha value ofargb
.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)
-
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 official a
Larh$b;a(I)I
intermediary method_27762
Lnet/minecraft/class_5253$class_5254;method_27762(I)I
named getAlpha
Lnet/minecraft/util/math/ColorHelper$Argb;getAlpha(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 official b
Larh$b;b(I)I
intermediary method_27765
Lnet/minecraft/class_5253$class_5254;method_27765(I)I
named getRed
Lnet/minecraft/util/math/ColorHelper$Argb;getRed(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 official c
Larh$b;c(I)I
intermediary method_27766
Lnet/minecraft/class_5253$class_5254;method_27766(I)I
named getGreen
Lnet/minecraft/util/math/ColorHelper$Argb;getGreen(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 official d
Larh$b;d(I)I
intermediary method_27767
Lnet/minecraft/class_5253$class_5254;method_27767(I)I
named getBlue
Lnet/minecraft/util/math/ColorHelper$Argb;getBlue(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 official a
Larh$b;a(IIII)I
intermediary method_27764
Lnet/minecraft/class_5253$class_5254;method_27764(IIII)I
named getArgb
Lnet/minecraft/util/math/ColorHelper$Argb;getArgb(IIII)I
-
mixColor
public static int mixColor(int first, int second) - Mappings:
Namespace Name Mixin selector official a
Larh$b;a(II)I
intermediary method_27763
Lnet/minecraft/class_5253$class_5254;method_27763(II)I
named mixColor
Lnet/minecraft/util/math/ColorHelper$Argb;mixColor(II)I
-
lerp
public static int lerp(float delta, int start, int end) - Mappings:
Namespace Name Mixin selector official a
Larh$b;a(FII)I
intermediary method_48780
Lnet/minecraft/class_5253$class_5254;method_48780(FII)I
named lerp
Lnet/minecraft/util/math/ColorHelper$Argb;lerp(FII)I
-