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$Argbintermediary net/minecraft/class_5253$class_5254official axy$b
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intaverageArgb(int a, int b) static intfromFloats(float a, float r, float g, float b) static intfullAlpha(int argb) static intgetAlpha(int argb) Returns the alpha value ofargb.static intgetArgb(int red, int green, int blue) 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) static intwithAlpha(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
0and255(both inclusive).- Returns:
- the alpha value of
argb - Mappings:
Namespace Name Mixin selector named getAlphaLnet/minecraft/util/math/ColorHelper$Argb;getAlpha(I)Iintermediary method_27762Lnet/minecraft/class_5253$class_5254;method_27762(I)Iofficial aLaxy$b;a(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 named getRedLnet/minecraft/util/math/ColorHelper$Argb;getRed(I)Iintermediary method_27765Lnet/minecraft/class_5253$class_5254;method_27765(I)Iofficial bLaxy$b;b(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 named getGreenLnet/minecraft/util/math/ColorHelper$Argb;getGreen(I)Iintermediary method_27766Lnet/minecraft/class_5253$class_5254;method_27766(I)Iofficial cLaxy$b;c(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 named getBlueLnet/minecraft/util/math/ColorHelper$Argb;getBlue(I)Iintermediary method_27767Lnet/minecraft/class_5253$class_5254;method_27767(I)Iofficial dLaxy$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 getArgbLnet/minecraft/util/math/ColorHelper$Argb;getArgb(IIII)Iintermediary method_27764Lnet/minecraft/class_5253$class_5254;method_27764(IIII)Iofficial aLaxy$b;a(IIII)I
-
getArgb
public static int getArgb(int red, int green, int blue) - Mappings:
Namespace Name Mixin selector named getArgbLnet/minecraft/util/math/ColorHelper$Argb;getArgb(III)Iintermediary method_57173Lnet/minecraft/class_5253$class_5254;method_57173(III)Iofficial aLaxy$b;a(III)I
-
mixColor
public static int mixColor(int first, int second) - Mappings:
Namespace Name Mixin selector named mixColorLnet/minecraft/util/math/ColorHelper$Argb;mixColor(II)Iintermediary method_27763Lnet/minecraft/class_5253$class_5254;method_27763(II)Iofficial aLaxy$b;a(II)I
-
lerp
public static int lerp(float delta, int start, int end) - Mappings:
Namespace Name Mixin selector named lerpLnet/minecraft/util/math/ColorHelper$Argb;lerp(FII)Iintermediary method_48780Lnet/minecraft/class_5253$class_5254;method_48780(FII)Iofficial aLaxy$b;a(FII)I
-
fullAlpha
public static int fullAlpha(int argb) - Mappings:
Namespace Name Mixin selector named fullAlphaLnet/minecraft/util/math/ColorHelper$Argb;fullAlpha(I)Iintermediary method_57174Lnet/minecraft/class_5253$class_5254;method_57174(I)Iofficial eLaxy$b;e(I)I
-
withAlpha
public static int withAlpha(int alpha, int rgb) - Mappings:
Namespace Name Mixin selector named withAlphaLnet/minecraft/util/math/ColorHelper$Argb;withAlpha(II)Iintermediary method_58144Lnet/minecraft/class_5253$class_5254;method_58144(II)Iofficial bLaxy$b;b(II)I
-
fromFloats
public static int fromFloats(float a, float r, float g, float b) - Mappings:
Namespace Name Mixin selector named fromFloatsLnet/minecraft/util/math/ColorHelper$Argb;fromFloats(FFFF)Iintermediary method_59554Lnet/minecraft/class_5253$class_5254;method_59554(FFFF)Iofficial aLaxy$b;a(FFFF)I
-
averageArgb
public static int averageArgb(int a, int b) - Mappings:
Namespace Name Mixin selector named averageArgbLnet/minecraft/util/math/ColorHelper$Argb;averageArgb(II)Iintermediary method_60676Lnet/minecraft/class_5253$class_5254;method_60676(II)Iofficial cLaxy$b;c(II)I
-