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 aok$bintermediary net/minecraft/class_5253$class_5254named net/minecraft/util/math/ColorHelper$Argb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetAlpha(int argb) Returns the alpha value ofargb.static intgetArgb(int alpha, int red, int green, int blue) Returns the ARGB color value from its components.static intgetBlue(int argb) Returns the blue value ofargb.static intgetGreen(int argb) Returns the green value ofargb.static intgetRed(int argb) Returns the red value ofargb.static intlerp(float delta, int start, int end) static intmixColor(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
0and255(both inclusive).- Returns:
- the alpha value of
argb - Mappings:
Namespace Name Mixin selector official aLaok$b;a(I)Iintermediary method_27762Lnet/minecraft/class_5253$class_5254;method_27762(I)Inamed getAlphaLnet/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
0and255(both inclusive).- Returns:
- the red value of
argb - Mappings:
Namespace Name Mixin selector official bLaok$b;b(I)Iintermediary method_27765Lnet/minecraft/class_5253$class_5254;method_27765(I)Inamed getRedLnet/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
0and255(both inclusive).- Returns:
- the green value of
argb - Mappings:
Namespace Name Mixin selector official cLaok$b;c(I)Iintermediary method_27766Lnet/minecraft/class_5253$class_5254;method_27766(I)Inamed getGreenLnet/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
0and255(both inclusive).- Returns:
- the blue value of
argb - Mappings:
Namespace Name Mixin selector official dLaok$b;d(I)Iintermediary method_27767Lnet/minecraft/class_5253$class_5254;method_27767(I)Inamed getBlueLnet/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 aLaok$b;a(IIII)Iintermediary method_27764Lnet/minecraft/class_5253$class_5254;method_27764(IIII)Inamed getArgbLnet/minecraft/util/math/ColorHelper$Argb;getArgb(IIII)I
-
mixColor
public static int mixColor(int first, int second) - Mappings:
Namespace Name Mixin selector official aLaok$b;a(II)Iintermediary method_27763Lnet/minecraft/class_5253$class_5254;method_27763(II)Inamed mixColorLnet/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 aLaok$b;a(FII)Iintermediary method_48780Lnet/minecraft/class_5253$class_5254;method_48780(FII)Inamed lerpLnet/minecraft/util/math/ColorHelper$Argb;lerp(FII)I
-