Class Color
java.lang.Object
com.github.retrooper.packetevents.protocol.color.Color
- All Implemented Interfaces:
net.kyori.adventure.util.RGBLike
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
asRGB()
@org.jetbrains.annotations.Range(from=0L, to=255L) int
blue()
@org.jetbrains.annotations.Range(from=0L, to=255L) int
green()
@org.jetbrains.annotations.Range(from=0L, to=255L) int
red()
@NotNull Color
withBlue
(@org.jetbrains.annotations.Range(from=0L, to=255L) int blue) @NotNull Color
withGreen
(@org.jetbrains.annotations.Range(from=0L, to=255L) int green) @NotNull Color
withRed
(@org.jetbrains.annotations.Range(from=0L, to=255L) int red) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.kyori.adventure.util.RGBLike
asHSV
-
Constructor Details
-
Color
public Color(@org.jetbrains.annotations.Range(from=0L, to=255L) int red, @org.jetbrains.annotations.Range(from=0L, to=255L) int green, @org.jetbrains.annotations.Range(from=0L, to=255L) int blue) -
Color
public Color(int rgb)
-
-
Method Details
-
withRed
-
withGreen
@NotNull public @NotNull Color withGreen(@org.jetbrains.annotations.Range(from=0L, to=255L) int green) -
withBlue
@NotNull public @NotNull Color withBlue(@org.jetbrains.annotations.Range(from=0L, to=255L) int blue) -
asRGB
public int asRGB() -
red
public @org.jetbrains.annotations.Range(from=0L, to=255L) int red()- Specified by:
red
in interfacenet.kyori.adventure.util.RGBLike
-
green
public @org.jetbrains.annotations.Range(from=0L, to=255L) int green()- Specified by:
green
in interfacenet.kyori.adventure.util.RGBLike
-
blue
public @org.jetbrains.annotations.Range(from=0L, to=255L) int blue()- Specified by:
blue
in interfacenet.kyori.adventure.util.RGBLike
-