Package net.minecraft.util.math
Class ColorHelper
java.lang.Object
net.minecraft.util.math.ColorHelper
Contains color-related helper methods that mostly use ARGB colors represented as
0xAARRGGBB.- Mappings:
Namespace Name named net/minecraft/util/math/ColorHelperintermediary net/minecraft/class_9848official beo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final short[]private static final byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intaverage(int first, int second) static intchannelFromFloat(float value) private static floatfloatFromChannel(int channel) static intfromAbgr(int abgr) static intfromFloats(float alpha, float red, float green, float blue) static intfullAlpha(int argb) static intgetAlpha(int argb) static floatgetAlphaFloat(int argb) static intgetArgb(int red, int green, int blue) static intgetArgb(int alpha, int red, int green, int blue) static intstatic intgetBlue(int argb) static floatgetBlueFloat(int argb) static intgetGreen(int argb) static floatgetGreenFloat(int argb) static intgetRed(int argb) static floatgetRedFloat(int argb) static intgetWhite(float alpha) static intgrayscale(int argb) static intlerp(float delta, int start, int end) static intmethod_75599(float float2) static floatmethod_75600(int int2) static intmethod_75601(int int2, float float2) static intmethod_75602(int int2, int int3, int int4, int int5) static intmethod_75605(float float2, int int2, int int3) static intmethod_75606(int int2, int int3) static intmethod_75607(float float2) static intmethod_75608(int int2, int int3) private static intmethod_75609(int int2, int int3, int int4, int int5) private static floatmethod_75610(float float2) private static floatmethod_75611(float float2) static intmethod_75612(int int2) static intmethod_75613(int int2) static intmix(int first, int second) static intscaleRgb(int argb, float scale) static intscaleRgb(int argb, float redScale, float greenScale, float blueScale) static intscaleRgb(int argb, int scale) static inttoAbgr(int argb) static Vector3ftoVector(int rgb) static intwithAlpha(float alpha, int color) static intwithAlpha(int alpha, int rgb) static intwithBrightness(int argb, float brightness) static intzeroAlpha(int argb)
-
Field Details
-
field_63677
private static final int field_63677- See Also:
- Mappings:
Namespace Name Mixin selector named field_63677Lnet/minecraft/util/math/ColorHelper;field_63677:Iintermediary field_63677Lnet/minecraft/class_9848;field_63677:Iofficial aLbeo;a:I
-
field_63678
private static final short[] field_63678- Mappings:
Namespace Name Mixin selector named field_63678Lnet/minecraft/util/math/ColorHelper;field_63678:[Sintermediary field_63678Lnet/minecraft/class_9848;field_63678:[Sofficial bLbeo;b:[S
-
field_63679
private static final byte[] field_63679- Mappings:
Namespace Name Mixin selector named field_63679Lnet/minecraft/util/math/ColorHelper;field_63679:[Bintermediary field_63679Lnet/minecraft/class_9848;field_63679:[Bofficial cLbeo;c:[B
-
-
Constructor Details
-
ColorHelper
public ColorHelper()
-
-
Method Details
-
method_75610
private static float method_75610(float float2) - Mappings:
Namespace Name Mixin selector named method_75610Lnet/minecraft/util/math/ColorHelper;method_75610(F)Fintermediary method_75610Lnet/minecraft/class_9848;method_75610(F)Fofficial eLbeo;e(F)F
-
method_75611
private static float method_75611(float float2) - Mappings:
Namespace Name Mixin selector named method_75611Lnet/minecraft/util/math/ColorHelper;method_75611(F)Fintermediary method_75611Lnet/minecraft/class_9848;method_75611(F)Fofficial fLbeo;f(F)F
-
method_75600
public static float method_75600(int int2) - Mappings:
Namespace Name Mixin selector named method_75600Lnet/minecraft/util/math/ColorHelper;method_75600(I)Fintermediary method_75600Lnet/minecraft/class_9848;method_75600(I)Fofficial aLbeo;a(I)F
-
method_75599
public static int method_75599(float float2) - Mappings:
Namespace Name Mixin selector named method_75599Lnet/minecraft/util/math/ColorHelper;method_75599(F)Iintermediary method_75599Lnet/minecraft/class_9848;method_75599(F)Iofficial aLbeo;a(F)I
-
method_75602
public static int method_75602(int int2, int int3, int int4, int int5) - Mappings:
Namespace Name Mixin selector named method_75602Lnet/minecraft/util/math/ColorHelper;method_75602(IIII)Iintermediary method_75602Lnet/minecraft/class_9848;method_75602(IIII)Iofficial aLbeo;a(IIII)I
-
method_75609
private static int method_75609(int int2, int int3, int int4, int int5) - Mappings:
Namespace Name Mixin selector named method_75609Lnet/minecraft/util/math/ColorHelper;method_75609(IIII)Iintermediary method_75609Lnet/minecraft/class_9848;method_75609(IIII)Iofficial cLbeo;c(IIII)I
-
getAlpha
public static int getAlpha(int argb) - Returns:
- the alpha value of
argbThe returned value is between
0and255(both inclusive). - Mappings:
Namespace Name Mixin selector named getAlphaLnet/minecraft/util/math/ColorHelper;getAlpha(I)Iintermediary method_61320Lnet/minecraft/class_9848;method_61320(I)Iofficial bLbeo;b(I)I
-
getRed
public static int getRed(int argb) - Returns:
- the red value of
argbThe returned value is between
0and255(both inclusive). - Mappings:
Namespace Name Mixin selector named getRedLnet/minecraft/util/math/ColorHelper;getRed(I)Iintermediary method_61327Lnet/minecraft/class_9848;method_61327(I)Iofficial cLbeo;c(I)I
-
getGreen
public static int getGreen(int argb) - Returns:
- the green value of
argbThe returned value is between
0and255(both inclusive). - Mappings:
Namespace Name Mixin selector named getGreenLnet/minecraft/util/math/ColorHelper;getGreen(I)Iintermediary method_61329Lnet/minecraft/class_9848;method_61329(I)Iofficial dLbeo;d(I)I
-
getBlue
public static int getBlue(int argb) - Returns:
- the blue value of
argbThe returned value is between
0and255(both inclusive). - Mappings:
Namespace Name Mixin selector named getBlueLnet/minecraft/util/math/ColorHelper;getBlue(I)Iintermediary method_61331Lnet/minecraft/class_9848;method_61331(I)Iofficial eLbeo;e(I)I
-
getArgb
public static int getArgb(int alpha, int red, int green, int blue) - Returns:
- the ARGB color value from its components
- Mappings:
Namespace Name Mixin selector named getArgbLnet/minecraft/util/math/ColorHelper;getArgb(IIII)Iintermediary method_61324Lnet/minecraft/class_9848;method_61324(IIII)Iofficial bLbeo;b(IIII)I
-
getArgb
public static int getArgb(int red, int green, int blue) - Returns:
- the full alpha ARGB color value from its components
- Mappings:
Namespace Name Mixin selector named getArgbLnet/minecraft/util/math/ColorHelper;getArgb(III)Iintermediary method_61323Lnet/minecraft/class_9848;method_61323(III)Iofficial aLbeo;a(III)I
-
getArgb
- Mappings:
Namespace Name Mixin selector named getArgbLnet/minecraft/util/math/ColorHelper;getArgb(Lnet/minecraft/util/math/Vec3d;)Iintermediary method_61325Lnet/minecraft/class_9848;method_61325(Lnet/minecraft/class_243;)Iofficial aLbeo;a(Lfrd;)I
-
mix
public static int mix(int first, int second) - Mappings:
Namespace Name Mixin selector named mixLnet/minecraft/util/math/ColorHelper;mix(II)Iintermediary method_61322Lnet/minecraft/class_9848;method_61322(II)Iofficial aLbeo;a(II)I
-
method_75606
public static int method_75606(int int2, int int3) - Mappings:
Namespace Name Mixin selector named method_75606Lnet/minecraft/util/math/ColorHelper;method_75606(II)Iintermediary method_75606Lnet/minecraft/class_9848;method_75606(II)Iofficial bLbeo;b(II)I
-
method_75608
public static int method_75608(int int2, int int3) - Mappings:
Namespace Name Mixin selector named method_75608Lnet/minecraft/util/math/ColorHelper;method_75608(II)Iintermediary method_75608Lnet/minecraft/class_9848;method_75608(II)Iofficial cLbeo;c(II)I
-
method_75601
public static int method_75601(int int2, float float2) - Mappings:
Namespace Name Mixin selector named method_75601Lnet/minecraft/util/math/ColorHelper;method_75601(IF)Iintermediary method_75601Lnet/minecraft/class_9848;method_75601(IF)Iofficial aLbeo;a(IF)I
-
scaleRgb
public static int scaleRgb(int argb, float scale) - Mappings:
Namespace Name Mixin selector named scaleRgbLnet/minecraft/util/math/ColorHelper;scaleRgb(IF)Iintermediary method_61321Lnet/minecraft/class_9848;method_61321(IF)Iofficial bLbeo;b(IF)I
-
scaleRgb
public static int scaleRgb(int argb, float redScale, float greenScale, float blueScale) - Mappings:
Namespace Name Mixin selector named scaleRgbLnet/minecraft/util/math/ColorHelper;scaleRgb(IFFF)Iintermediary method_64602Lnet/minecraft/class_9848;method_64602(IFFF)Iofficial aLbeo;a(IFFF)I
-
scaleRgb
public static int scaleRgb(int argb, int scale) - Mappings:
Namespace Name Mixin selector named scaleRgbLnet/minecraft/util/math/ColorHelper;scaleRgb(II)Iintermediary method_61328Lnet/minecraft/class_9848;method_61328(II)Iofficial dLbeo;d(II)I
-
grayscale
public static int grayscale(int argb) - Mappings:
Namespace Name Mixin selector named grayscaleLnet/minecraft/util/math/ColorHelper;grayscale(I)Iintermediary method_61333Lnet/minecraft/class_9848;method_61333(I)Iofficial fLbeo;f(I)I
-
lerp
public static int lerp(float delta, int start, int end) - Mappings:
Namespace Name Mixin selector named lerpLnet/minecraft/util/math/ColorHelper;lerp(FII)Iintermediary method_61319Lnet/minecraft/class_9848;method_61319(FII)Iofficial aLbeo;a(FII)I
-
method_75605
public static int method_75605(float float2, int int2, int int3) - Mappings:
Namespace Name Mixin selector named method_75605Lnet/minecraft/util/math/ColorHelper;method_75605(FII)Iintermediary method_75605Lnet/minecraft/class_9848;method_75605(FII)Iofficial bLbeo;b(FII)I
-
fullAlpha
public static int fullAlpha(int argb) - Mappings:
Namespace Name Mixin selector named fullAlphaLnet/minecraft/util/math/ColorHelper;fullAlpha(I)Iintermediary method_61334Lnet/minecraft/class_9848;method_61334(I)Iofficial gLbeo;g(I)I
-
zeroAlpha
public static int zeroAlpha(int argb) - Mappings:
Namespace Name Mixin selector named zeroAlphaLnet/minecraft/util/math/ColorHelper;zeroAlpha(I)Iintermediary method_61335Lnet/minecraft/class_9848;method_61335(I)Iofficial hLbeo;h(I)I
-
withAlpha
public static int withAlpha(int alpha, int rgb) - Mappings:
Namespace Name Mixin selector named withAlphaLnet/minecraft/util/math/ColorHelper;withAlpha(II)Iintermediary method_61330Lnet/minecraft/class_9848;method_61330(II)Iofficial eLbeo;e(II)I
-
withAlpha
public static int withAlpha(float alpha, int color) - Mappings:
Namespace Name Mixin selector named withAlphaLnet/minecraft/util/math/ColorHelper;withAlpha(FI)Iintermediary method_71346Lnet/minecraft/class_9848;method_71346(FI)Iofficial aLbeo;a(FI)I
-
getWhite
public static int getWhite(float alpha) - Mappings:
Namespace Name Mixin selector named getWhiteLnet/minecraft/util/math/ColorHelper;getWhite(F)Iintermediary method_61317Lnet/minecraft/class_9848;method_61317(F)Iofficial bLbeo;b(F)I
-
method_75612
public static int method_75612(int int2) - Mappings:
Namespace Name Mixin selector named method_75612Lnet/minecraft/util/math/ColorHelper;method_75612(I)Iintermediary method_75612Lnet/minecraft/class_9848;method_75612(I)Iofficial iLbeo;i(I)I
-
method_75607
public static int method_75607(float float2) - Mappings:
Namespace Name Mixin selector named method_75607Lnet/minecraft/util/math/ColorHelper;method_75607(F)Iintermediary method_75607Lnet/minecraft/class_9848;method_75607(F)Iofficial cLbeo;c(F)I
-
method_75613
public static int method_75613(int int2) - Mappings:
Namespace Name Mixin selector named method_75613Lnet/minecraft/util/math/ColorHelper;method_75613(I)Iintermediary method_75613Lnet/minecraft/class_9848;method_75613(I)Iofficial jLbeo;j(I)I
-
fromFloats
public static int fromFloats(float alpha, float red, float green, float blue) - Mappings:
Namespace Name Mixin selector named fromFloatsLnet/minecraft/util/math/ColorHelper;fromFloats(FFFF)Iintermediary method_61318Lnet/minecraft/class_9848;method_61318(FFFF)Iofficial aLbeo;a(FFFF)I
-
toVector
- Mappings:
Namespace Name Mixin selector named toVectorLnet/minecraft/util/math/ColorHelper;toVector(I)Lorg/joml/Vector3f;intermediary method_64963Lnet/minecraft/class_9848;method_64963(I)Lorg/joml/Vector3f;official kLbeo;k(I)Lorg/joml/Vector3f;
-
average
public static int average(int first, int second) - Mappings:
Namespace Name Mixin selector named averageLnet/minecraft/util/math/ColorHelper;average(II)Iintermediary method_61332Lnet/minecraft/class_9848;method_61332(II)Iofficial fLbeo;f(II)I
-
channelFromFloat
public static int channelFromFloat(float value) - Mappings:
Namespace Name Mixin selector named channelFromFloatLnet/minecraft/util/math/ColorHelper;channelFromFloat(F)Iintermediary method_61326Lnet/minecraft/class_9848;method_61326(F)Iofficial dLbeo;d(F)I
-
getAlphaFloat
public static float getAlphaFloat(int argb) - Mappings:
Namespace Name Mixin selector named getAlphaFloatLnet/minecraft/util/math/ColorHelper;getAlphaFloat(I)Fintermediary method_65100Lnet/minecraft/class_9848;method_65100(I)Fofficial lLbeo;l(I)F
-
getRedFloat
public static float getRedFloat(int argb) - Mappings:
Namespace Name Mixin selector named getRedFloatLnet/minecraft/util/math/ColorHelper;getRedFloat(I)Fintermediary method_65101Lnet/minecraft/class_9848;method_65101(I)Fofficial mLbeo;m(I)F
-
getGreenFloat
public static float getGreenFloat(int argb) - Mappings:
Namespace Name Mixin selector named getGreenFloatLnet/minecraft/util/math/ColorHelper;getGreenFloat(I)Fintermediary method_65102Lnet/minecraft/class_9848;method_65102(I)Fofficial nLbeo;n(I)F
-
getBlueFloat
public static float getBlueFloat(int argb) - Mappings:
Namespace Name Mixin selector named getBlueFloatLnet/minecraft/util/math/ColorHelper;getBlueFloat(I)Fintermediary method_65103Lnet/minecraft/class_9848;method_65103(I)Fofficial oLbeo;o(I)F
-
floatFromChannel
private static float floatFromChannel(int channel) - Mappings:
Namespace Name Mixin selector named floatFromChannelLnet/minecraft/util/math/ColorHelper;floatFromChannel(I)Fintermediary method_61336Lnet/minecraft/class_9848;method_61336(I)Fofficial rLbeo;r(I)F
-
toAbgr
public static int toAbgr(int argb) - Mappings:
Namespace Name Mixin selector named toAbgrLnet/minecraft/util/math/ColorHelper;toAbgr(I)Iintermediary method_61337Lnet/minecraft/class_9848;method_61337(I)Iofficial pLbeo;p(I)I
-
fromAbgr
public static int fromAbgr(int abgr) - Mappings:
Namespace Name Mixin selector named fromAbgrLnet/minecraft/util/math/ColorHelper;fromAbgr(I)Iintermediary method_61338Lnet/minecraft/class_9848;method_61338(I)Iofficial qLbeo;q(I)I
-
withBrightness
public static int withBrightness(int argb, float brightness) - Mappings:
Namespace Name Mixin selector named withBrightnessLnet/minecraft/util/math/ColorHelper;withBrightness(IF)Iintermediary method_70658Lnet/minecraft/class_9848;method_70658(IF)Iofficial cLbeo;c(IF)I
-