Class Color
java.lang.Object
com.github.retrooper.packetevents.protocol.color.Color
- All Implemented Interfaces:
net.kyori.adventure.util.RGBLike
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintasRGB()@org.jetbrains.annotations.Range(from=0L, to=255L) intblue()@org.jetbrains.annotations.Range(from=0L, to=255L) intgreen()@org.jetbrains.annotations.Range(from=0L, to=255L) intred()@NotNull ColorwithBlue(@org.jetbrains.annotations.Range(from=0L, to=255L) int blue) @NotNull ColorwithGreen(@org.jetbrains.annotations.Range(from=0L, to=255L) int green) @NotNull ColorwithRed(@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, waitMethods 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:
redin interfacenet.kyori.adventure.util.RGBLike
-
green
public @org.jetbrains.annotations.Range(from=0L, to=255L) int green()- Specified by:
greenin interfacenet.kyori.adventure.util.RGBLike
-
blue
public @org.jetbrains.annotations.Range(from=0L, to=255L) int blue()- Specified by:
bluein interfacenet.kyori.adventure.util.RGBLike
-