yarn/mappings/net/minecraft/util/math/ColorHelper.mapping

56 lines
1.7 KiB
Plaintext

CLASS net/minecraft/class_5253 net/minecraft/util/math/ColorHelper
COMMENT Contains color-related helper methods.
CLASS class_5254 Argb
COMMENT Contains color-related helper methods that use ARGB colors represented
COMMENT as {@code 0xAARRGGBB}.
METHOD method_27762 getAlpha (I)I
COMMENT {@return the alpha value of {@code argb}}
COMMENT
COMMENT <p>The returned value is between {@code 0} and {@code 255} (both inclusive).
ARG 0 argb
METHOD method_27763 mixColor (II)I
ARG 0 first
ARG 1 second
METHOD method_27764 getArgb (IIII)I
COMMENT {@return the ARGB color value from its components}
ARG 0 alpha
ARG 1 red
ARG 2 green
ARG 3 blue
METHOD method_27765 getRed (I)I
COMMENT {@return the red value of {@code argb}}
COMMENT
COMMENT <p>The returned value is between {@code 0} and {@code 255} (both inclusive).
ARG 0 argb
METHOD method_27766 getGreen (I)I
COMMENT {@return the green value of {@code argb}}
COMMENT
COMMENT <p>The returned value is between {@code 0} and {@code 255} (both inclusive).
ARG 0 argb
METHOD method_27767 getBlue (I)I
COMMENT {@return the blue value of {@code argb}}
COMMENT
COMMENT <p>The returned value is between {@code 0} and {@code 255} (both inclusive).
ARG 0 argb
CLASS class_8045 Abgr
METHOD method_48342 getAlpha (I)I
ARG 0 abgr
METHOD method_48343 withAlpha (II)I
ARG 0 alpha
ARG 1 bgr
METHOD method_48344 getAbgr (IIII)I
ARG 0 a
ARG 1 b
ARG 2 g
ARG 3 r
METHOD method_48345 getBlue (I)I
ARG 0 abgr
METHOD method_48346 getGreen (I)I
ARG 0 abgr
METHOD method_48347 getRed (I)I
ARG 0 abgr
METHOD method_48348 getBgr (I)I
ARG 0 abgr
METHOD method_48548 toOpaque (I)I
ARG 0 abgr