Class RGBAColorWrapper

java.lang.Object
de.eldoria.jacksonbukkit.entities.RGBColorWrapper
de.eldoria.jacksonbukkit.entities.RGBAColorWrapper

public final class RGBAColorWrapper extends RGBColorWrapper
Class for wrapping a Color.

It also allows transformation to hex code and parsing of hex code.

This class is used on Paper Servers starting from 1.19 where alpha was introduced to colors.

  • Constructor Details

    • RGBAColorWrapper

      public RGBAColorWrapper(int red, int green, int blue, int alpha)
      Create a new color wrapper for RGBA colors
      Parameters:
      red - red value
      green - green value
      blue - blue value
      alpha - alpha value
  • Method Details