Class ColorHelper.Argb

java.lang.Object
net.minecraft.util.math.ColorHelper.Argb
Enclosing class:
ColorHelper

public static class ColorHelper.Argb extends Object
Contains color-related helper methods that use ARGB colors represented as 0xAARRGGBB.
Mappings:
Namespace Name
named net/minecraft/util/math/ColorHelper$Argb
intermediary net/minecraft/class_5253$class_5254
official ayj$b
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    fromFloats(float a, float r, float g, float b)
     
    static int
    fullAlpha(int argb)
     
    static int
    getAlpha(int argb)
    Returns the alpha value of argb.
    static int
    getArgb(int red, int green, int blue)
     
    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 of argb.
    static int
    getGreen(int argb)
    Returns the green value of argb.
    static int
    getRed(int argb)
    Returns the red value of argb.
    static int
    lerp(float delta, int start, int end)
     
    static int
    mixColor(int first, int second)
     
    static int
    withAlpha(int alpha, int rgb)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Argb

      public Argb()
  • Method Details

    • getAlpha

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

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

      Returns:
      the alpha value of argb
      Mappings:
      Namespace Name Mixin selector
      named getAlpha Lnet/minecraft/util/math/ColorHelper$Argb;getAlpha(I)I
      intermediary method_27762 Lnet/minecraft/class_5253$class_5254;method_27762(I)I
      official a Layj$b;a(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).

      Returns:
      the red value of argb
      Mappings:
      Namespace Name Mixin selector
      named getRed Lnet/minecraft/util/math/ColorHelper$Argb;getRed(I)I
      intermediary method_27765 Lnet/minecraft/class_5253$class_5254;method_27765(I)I
      official b Layj$b;b(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).

      Returns:
      the green value of argb
      Mappings:
      Namespace Name Mixin selector
      named getGreen Lnet/minecraft/util/math/ColorHelper$Argb;getGreen(I)I
      intermediary method_27766 Lnet/minecraft/class_5253$class_5254;method_27766(I)I
      official c Layj$b;c(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).

      Returns:
      the blue value of argb
      Mappings:
      Namespace Name Mixin selector
      named getBlue Lnet/minecraft/util/math/ColorHelper$Argb;getBlue(I)I
      intermediary method_27767 Lnet/minecraft/class_5253$class_5254;method_27767(I)I
      official d Layj$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 getArgb Lnet/minecraft/util/math/ColorHelper$Argb;getArgb(IIII)I
      intermediary method_27764 Lnet/minecraft/class_5253$class_5254;method_27764(IIII)I
      official a Layj$b;a(IIII)I
    • getArgb

      public static int getArgb(int red, int green, int blue)
      Mappings:
      Namespace Name Mixin selector
      named getArgb Lnet/minecraft/util/math/ColorHelper$Argb;getArgb(III)I
      intermediary method_57173 Lnet/minecraft/class_5253$class_5254;method_57173(III)I
      official a Layj$b;a(III)I
    • mixColor

      public static int mixColor(int first, int second)
      Mappings:
      Namespace Name Mixin selector
      named mixColor Lnet/minecraft/util/math/ColorHelper$Argb;mixColor(II)I
      intermediary method_27763 Lnet/minecraft/class_5253$class_5254;method_27763(II)I
      official a Layj$b;a(II)I
    • lerp

      public static int lerp(float delta, int start, int end)
      Mappings:
      Namespace Name Mixin selector
      named lerp Lnet/minecraft/util/math/ColorHelper$Argb;lerp(FII)I
      intermediary method_48780 Lnet/minecraft/class_5253$class_5254;method_48780(FII)I
      official a Layj$b;a(FII)I
    • fullAlpha

      public static int fullAlpha(int argb)
      Mappings:
      Namespace Name Mixin selector
      named fullAlpha Lnet/minecraft/util/math/ColorHelper$Argb;fullAlpha(I)I
      intermediary method_57174 Lnet/minecraft/class_5253$class_5254;method_57174(I)I
      official e Layj$b;e(I)I
    • withAlpha

      public static int withAlpha(int alpha, int rgb)
      Mappings:
      Namespace Name Mixin selector
      named withAlpha Lnet/minecraft/util/math/ColorHelper$Argb;withAlpha(II)I
      intermediary method_58144 Lnet/minecraft/class_5253$class_5254;method_58144(II)I
      official b Layj$b;b(II)I
    • fromFloats

      public static int fromFloats(float a, float r, float g, float b)
      Mappings:
      Namespace Name Mixin selector
      named fromFloats Lnet/minecraft/util/math/ColorHelper$Argb;fromFloats(FFFF)I
      intermediary method_59554 Lnet/minecraft/class_5253$class_5254;method_59554(FFFF)I
      official a Layj$b;a(FFFF)I