Class ColorHelper

java.lang.Object
net.minecraft.util.math.ColorHelper

public class ColorHelper extends Object
Contains color-related helper methods that mostly use ARGB colors represented as 0xAARRGGBB.
Mappings:
Namespace Name
named net/minecraft/util/math/ColorHelper
intermediary net/minecraft/class_9848
official beo
  • Field Details

    • field_63677

      private static final int field_63677
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_63677 Lnet/minecraft/util/math/ColorHelper;field_63677:I
      intermediary field_63677 Lnet/minecraft/class_9848;field_63677:I
      official a Lbeo;a:I
    • field_63678

      private static final short[] field_63678
      Mappings:
      Namespace Name Mixin selector
      named field_63678 Lnet/minecraft/util/math/ColorHelper;field_63678:[S
      intermediary field_63678 Lnet/minecraft/class_9848;field_63678:[S
      official b Lbeo;b:[S
    • field_63679

      private static final byte[] field_63679
      Mappings:
      Namespace Name Mixin selector
      named field_63679 Lnet/minecraft/util/math/ColorHelper;field_63679:[B
      intermediary field_63679 Lnet/minecraft/class_9848;field_63679:[B
      official c Lbeo;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_75610 Lnet/minecraft/util/math/ColorHelper;method_75610(F)F
      intermediary method_75610 Lnet/minecraft/class_9848;method_75610(F)F
      official e Lbeo;e(F)F
    • method_75611

      private static float method_75611(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75611 Lnet/minecraft/util/math/ColorHelper;method_75611(F)F
      intermediary method_75611 Lnet/minecraft/class_9848;method_75611(F)F
      official f Lbeo;f(F)F
    • method_75600

      public static float method_75600(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_75600 Lnet/minecraft/util/math/ColorHelper;method_75600(I)F
      intermediary method_75600 Lnet/minecraft/class_9848;method_75600(I)F
      official a Lbeo;a(I)F
    • method_75599

      public static int method_75599(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75599 Lnet/minecraft/util/math/ColorHelper;method_75599(F)I
      intermediary method_75599 Lnet/minecraft/class_9848;method_75599(F)I
      official a Lbeo;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_75602 Lnet/minecraft/util/math/ColorHelper;method_75602(IIII)I
      intermediary method_75602 Lnet/minecraft/class_9848;method_75602(IIII)I
      official a Lbeo;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_75609 Lnet/minecraft/util/math/ColorHelper;method_75609(IIII)I
      intermediary method_75609 Lnet/minecraft/class_9848;method_75609(IIII)I
      official c Lbeo;c(IIII)I
    • getAlpha

      public static int getAlpha(int argb)
      Returns:
      the alpha value of argb

      The returned value is between 0 and 255 (both inclusive).

      Mappings:
      Namespace Name Mixin selector
      named getAlpha Lnet/minecraft/util/math/ColorHelper;getAlpha(I)I
      intermediary method_61320 Lnet/minecraft/class_9848;method_61320(I)I
      official b Lbeo;b(I)I
    • getRed

      public static int getRed(int argb)
      Returns:
      the red value of argb

      The returned value is between 0 and 255 (both inclusive).

      Mappings:
      Namespace Name Mixin selector
      named getRed Lnet/minecraft/util/math/ColorHelper;getRed(I)I
      intermediary method_61327 Lnet/minecraft/class_9848;method_61327(I)I
      official c Lbeo;c(I)I
    • getGreen

      public static int getGreen(int argb)
      Returns:
      the green value of argb

      The returned value is between 0 and 255 (both inclusive).

      Mappings:
      Namespace Name Mixin selector
      named getGreen Lnet/minecraft/util/math/ColorHelper;getGreen(I)I
      intermediary method_61329 Lnet/minecraft/class_9848;method_61329(I)I
      official d Lbeo;d(I)I
    • getBlue

      public static int getBlue(int argb)
      Returns:
      the blue value of argb

      The returned value is between 0 and 255 (both inclusive).

      Mappings:
      Namespace Name Mixin selector
      named getBlue Lnet/minecraft/util/math/ColorHelper;getBlue(I)I
      intermediary method_61331 Lnet/minecraft/class_9848;method_61331(I)I
      official e Lbeo;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 getArgb Lnet/minecraft/util/math/ColorHelper;getArgb(IIII)I
      intermediary method_61324 Lnet/minecraft/class_9848;method_61324(IIII)I
      official b Lbeo;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 getArgb Lnet/minecraft/util/math/ColorHelper;getArgb(III)I
      intermediary method_61323 Lnet/minecraft/class_9848;method_61323(III)I
      official a Lbeo;a(III)I
    • getArgb

      public static int getArgb(Vec3d rgb)
      Mappings:
      Namespace Name Mixin selector
      named getArgb Lnet/minecraft/util/math/ColorHelper;getArgb(Lnet/minecraft/util/math/Vec3d;)I
      intermediary method_61325 Lnet/minecraft/class_9848;method_61325(Lnet/minecraft/class_243;)I
      official a Lbeo;a(Lfrd;)I
    • mix

      public static int mix(int first, int second)
      Mappings:
      Namespace Name Mixin selector
      named mix Lnet/minecraft/util/math/ColorHelper;mix(II)I
      intermediary method_61322 Lnet/minecraft/class_9848;method_61322(II)I
      official a Lbeo;a(II)I
    • method_75606

      public static int method_75606(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      named method_75606 Lnet/minecraft/util/math/ColorHelper;method_75606(II)I
      intermediary method_75606 Lnet/minecraft/class_9848;method_75606(II)I
      official b Lbeo;b(II)I
    • method_75608

      public static int method_75608(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      named method_75608 Lnet/minecraft/util/math/ColorHelper;method_75608(II)I
      intermediary method_75608 Lnet/minecraft/class_9848;method_75608(II)I
      official c Lbeo;c(II)I
    • method_75601

      public static int method_75601(int int2, float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75601 Lnet/minecraft/util/math/ColorHelper;method_75601(IF)I
      intermediary method_75601 Lnet/minecraft/class_9848;method_75601(IF)I
      official a Lbeo;a(IF)I
    • scaleRgb

      public static int scaleRgb(int argb, float scale)
      Mappings:
      Namespace Name Mixin selector
      named scaleRgb Lnet/minecraft/util/math/ColorHelper;scaleRgb(IF)I
      intermediary method_61321 Lnet/minecraft/class_9848;method_61321(IF)I
      official b Lbeo;b(IF)I
    • scaleRgb

      public static int scaleRgb(int argb, float redScale, float greenScale, float blueScale)
      Mappings:
      Namespace Name Mixin selector
      named scaleRgb Lnet/minecraft/util/math/ColorHelper;scaleRgb(IFFF)I
      intermediary method_64602 Lnet/minecraft/class_9848;method_64602(IFFF)I
      official a Lbeo;a(IFFF)I
    • scaleRgb

      public static int scaleRgb(int argb, int scale)
      Mappings:
      Namespace Name Mixin selector
      named scaleRgb Lnet/minecraft/util/math/ColorHelper;scaleRgb(II)I
      intermediary method_61328 Lnet/minecraft/class_9848;method_61328(II)I
      official d Lbeo;d(II)I
    • grayscale

      public static int grayscale(int argb)
      Mappings:
      Namespace Name Mixin selector
      named grayscale Lnet/minecraft/util/math/ColorHelper;grayscale(I)I
      intermediary method_61333 Lnet/minecraft/class_9848;method_61333(I)I
      official f Lbeo;f(I)I
    • lerp

      public static int lerp(float delta, int start, int end)
      Mappings:
      Namespace Name Mixin selector
      named lerp Lnet/minecraft/util/math/ColorHelper;lerp(FII)I
      intermediary method_61319 Lnet/minecraft/class_9848;method_61319(FII)I
      official a Lbeo;a(FII)I
    • method_75605

      public static int method_75605(float float2, int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      named method_75605 Lnet/minecraft/util/math/ColorHelper;method_75605(FII)I
      intermediary method_75605 Lnet/minecraft/class_9848;method_75605(FII)I
      official b Lbeo;b(FII)I
    • fullAlpha

      public static int fullAlpha(int argb)
      Mappings:
      Namespace Name Mixin selector
      named fullAlpha Lnet/minecraft/util/math/ColorHelper;fullAlpha(I)I
      intermediary method_61334 Lnet/minecraft/class_9848;method_61334(I)I
      official g Lbeo;g(I)I
    • zeroAlpha

      public static int zeroAlpha(int argb)
      Mappings:
      Namespace Name Mixin selector
      named zeroAlpha Lnet/minecraft/util/math/ColorHelper;zeroAlpha(I)I
      intermediary method_61335 Lnet/minecraft/class_9848;method_61335(I)I
      official h Lbeo;h(I)I
    • withAlpha

      public static int withAlpha(int alpha, int rgb)
      Mappings:
      Namespace Name Mixin selector
      named withAlpha Lnet/minecraft/util/math/ColorHelper;withAlpha(II)I
      intermediary method_61330 Lnet/minecraft/class_9848;method_61330(II)I
      official e Lbeo;e(II)I
    • withAlpha

      public static int withAlpha(float alpha, int color)
      Mappings:
      Namespace Name Mixin selector
      named withAlpha Lnet/minecraft/util/math/ColorHelper;withAlpha(FI)I
      intermediary method_71346 Lnet/minecraft/class_9848;method_71346(FI)I
      official a Lbeo;a(FI)I
    • getWhite

      public static int getWhite(float alpha)
      Mappings:
      Namespace Name Mixin selector
      named getWhite Lnet/minecraft/util/math/ColorHelper;getWhite(F)I
      intermediary method_61317 Lnet/minecraft/class_9848;method_61317(F)I
      official b Lbeo;b(F)I
    • method_75612

      public static int method_75612(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_75612 Lnet/minecraft/util/math/ColorHelper;method_75612(I)I
      intermediary method_75612 Lnet/minecraft/class_9848;method_75612(I)I
      official i Lbeo;i(I)I
    • method_75607

      public static int method_75607(float float2)
      Mappings:
      Namespace Name Mixin selector
      named method_75607 Lnet/minecraft/util/math/ColorHelper;method_75607(F)I
      intermediary method_75607 Lnet/minecraft/class_9848;method_75607(F)I
      official c Lbeo;c(F)I
    • method_75613

      public static int method_75613(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_75613 Lnet/minecraft/util/math/ColorHelper;method_75613(I)I
      intermediary method_75613 Lnet/minecraft/class_9848;method_75613(I)I
      official j Lbeo;j(I)I
    • fromFloats

      public static int fromFloats(float alpha, float red, float green, float blue)
      Mappings:
      Namespace Name Mixin selector
      named fromFloats Lnet/minecraft/util/math/ColorHelper;fromFloats(FFFF)I
      intermediary method_61318 Lnet/minecraft/class_9848;method_61318(FFFF)I
      official a Lbeo;a(FFFF)I
    • toVector

      public static Vector3f toVector(int rgb)
      Mappings:
      Namespace Name Mixin selector
      named toVector Lnet/minecraft/util/math/ColorHelper;toVector(I)Lorg/joml/Vector3f;
      intermediary method_64963 Lnet/minecraft/class_9848;method_64963(I)Lorg/joml/Vector3f;
      official k Lbeo;k(I)Lorg/joml/Vector3f;
    • average

      public static int average(int first, int second)
      Mappings:
      Namespace Name Mixin selector
      named average Lnet/minecraft/util/math/ColorHelper;average(II)I
      intermediary method_61332 Lnet/minecraft/class_9848;method_61332(II)I
      official f Lbeo;f(II)I
    • channelFromFloat

      public static int channelFromFloat(float value)
      Mappings:
      Namespace Name Mixin selector
      named channelFromFloat Lnet/minecraft/util/math/ColorHelper;channelFromFloat(F)I
      intermediary method_61326 Lnet/minecraft/class_9848;method_61326(F)I
      official d Lbeo;d(F)I
    • getAlphaFloat

      public static float getAlphaFloat(int argb)
      Mappings:
      Namespace Name Mixin selector
      named getAlphaFloat Lnet/minecraft/util/math/ColorHelper;getAlphaFloat(I)F
      intermediary method_65100 Lnet/minecraft/class_9848;method_65100(I)F
      official l Lbeo;l(I)F
    • getRedFloat

      public static float getRedFloat(int argb)
      Mappings:
      Namespace Name Mixin selector
      named getRedFloat Lnet/minecraft/util/math/ColorHelper;getRedFloat(I)F
      intermediary method_65101 Lnet/minecraft/class_9848;method_65101(I)F
      official m Lbeo;m(I)F
    • getGreenFloat

      public static float getGreenFloat(int argb)
      Mappings:
      Namespace Name Mixin selector
      named getGreenFloat Lnet/minecraft/util/math/ColorHelper;getGreenFloat(I)F
      intermediary method_65102 Lnet/minecraft/class_9848;method_65102(I)F
      official n Lbeo;n(I)F
    • getBlueFloat

      public static float getBlueFloat(int argb)
      Mappings:
      Namespace Name Mixin selector
      named getBlueFloat Lnet/minecraft/util/math/ColorHelper;getBlueFloat(I)F
      intermediary method_65103 Lnet/minecraft/class_9848;method_65103(I)F
      official o Lbeo;o(I)F
    • floatFromChannel

      private static float floatFromChannel(int channel)
      Mappings:
      Namespace Name Mixin selector
      named floatFromChannel Lnet/minecraft/util/math/ColorHelper;floatFromChannel(I)F
      intermediary method_61336 Lnet/minecraft/class_9848;method_61336(I)F
      official r Lbeo;r(I)F
    • toAbgr

      public static int toAbgr(int argb)
      Mappings:
      Namespace Name Mixin selector
      named toAbgr Lnet/minecraft/util/math/ColorHelper;toAbgr(I)I
      intermediary method_61337 Lnet/minecraft/class_9848;method_61337(I)I
      official p Lbeo;p(I)I
    • fromAbgr

      public static int fromAbgr(int abgr)
      Mappings:
      Namespace Name Mixin selector
      named fromAbgr Lnet/minecraft/util/math/ColorHelper;fromAbgr(I)I
      intermediary method_61338 Lnet/minecraft/class_9848;method_61338(I)I
      official q Lbeo;q(I)I
    • withBrightness

      public static int withBrightness(int argb, float brightness)
      Mappings:
      Namespace Name Mixin selector
      named withBrightness Lnet/minecraft/util/math/ColorHelper;withBrightness(IF)I
      intermediary method_70658 Lnet/minecraft/class_9848;method_70658(IF)I
      official c Lbeo;c(IF)I