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
official anm$a
intermediary net/minecraft/class_5253$class_5254
named net/minecraft/util/math/ColorHelper$Argb
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getAlpha(int argb)
    Returns the alpha value of argb.
    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
    mixColor(int first, int second)
     

    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
      official a Lanm$a;a(I)I
      intermediary method_27762 Lnet/minecraft/class_5253$class_5254;method_27762(I)I
      named getAlpha Lnet/minecraft/util/math/ColorHelper$Argb;getAlpha(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
      official b Lanm$a;b(I)I
      intermediary method_27765 Lnet/minecraft/class_5253$class_5254;method_27765(I)I
      named getRed Lnet/minecraft/util/math/ColorHelper$Argb;getRed(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
      official c Lanm$a;c(I)I
      intermediary method_27766 Lnet/minecraft/class_5253$class_5254;method_27766(I)I
      named getGreen Lnet/minecraft/util/math/ColorHelper$Argb;getGreen(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
      official d Lanm$a;d(I)I
      intermediary method_27767 Lnet/minecraft/class_5253$class_5254;method_27767(I)I
      named getBlue Lnet/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 a Lanm$a;a(IIII)I
      intermediary method_27764 Lnet/minecraft/class_5253$class_5254;method_27764(IIII)I
      named getArgb Lnet/minecraft/util/math/ColorHelper$Argb;getArgb(IIII)I
    • mixColor

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