Class AlphaColor
java.lang.Object
com.github.retrooper.packetevents.protocol.color.Color
com.github.retrooper.packetevents.protocol.color.AlphaColor
- All Implemented Interfaces:
net.kyori.adventure.util.RGBLike
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAlphaColor
(@org.jetbrains.annotations.Range(from=0L, to=1L) float red, @org.jetbrains.annotations.Range(from=0L, to=1L) float green, @org.jetbrains.annotations.Range(from=0L, to=1L) float blue) AlphaColor
(@org.jetbrains.annotations.Range(from=0L, to=1L) float alpha, @org.jetbrains.annotations.Range(from=0L, to=1L) float red, @org.jetbrains.annotations.Range(from=0L, to=1L) float green, @org.jetbrains.annotations.Range(from=0L, to=1L) float blue) AlphaColor
(@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) AlphaColor
(@org.jetbrains.annotations.Range(from=0L, to=255L) int alpha, @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) AlphaColor
(int rgb) -
Method Summary
Modifier and TypeMethodDescription@org.jetbrains.annotations.Range(from=0L, to=255L) int
alpha()
int
asRGB()
@org.jetbrains.annotations.Range(from=0L, to=255L) int
blue()
static AlphaColor
decode
(NBT nbt, ClientVersion version) static NBT
encode
(AlphaColor color, ClientVersion version) @org.jetbrains.annotations.Range(from=0L, to=255L) int
green()
@org.jetbrains.annotations.Range(from=0L, to=255L) int
red()
withAlpha
(@org.jetbrains.annotations.Range(from=0L, to=255L) int alpha) withBlue
(@org.jetbrains.annotations.Range(from=0L, to=255L) int blue) withGreen
(@org.jetbrains.annotations.Range(from=0L, to=255L) int green) withRed
(@org.jetbrains.annotations.Range(from=0L, to=255L) int red) Methods inherited from class com.github.retrooper.packetevents.protocol.color.Color
encode, read, write
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
-
Field Details
-
WHITE
-
-
Constructor Details
-
AlphaColor
public AlphaColor(@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) -
AlphaColor
public AlphaColor(@org.jetbrains.annotations.Range(from=0L, to=255L) int alpha, @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) -
AlphaColor
public AlphaColor(@org.jetbrains.annotations.Range(from=0L, to=1L) float red, @org.jetbrains.annotations.Range(from=0L, to=1L) float green, @org.jetbrains.annotations.Range(from=0L, to=1L) float blue) -
AlphaColor
public AlphaColor(@org.jetbrains.annotations.Range(from=0L, to=1L) float alpha, @org.jetbrains.annotations.Range(from=0L, to=1L) float red, @org.jetbrains.annotations.Range(from=0L, to=1L) float green, @org.jetbrains.annotations.Range(from=0L, to=1L) float blue) -
AlphaColor
public AlphaColor(int rgb)
-
-
Method Details
-
decode
-
encode
-
withAlpha
-
withRed
-
withGreen
-
withBlue
-
asRGB
public int asRGB() -
alpha
public @org.jetbrains.annotations.Range(from=0L, to=255L) int alpha() -
red
public @org.jetbrains.annotations.Range(from=0L, to=255L) int red() -
green
public @org.jetbrains.annotations.Range(from=0L, to=255L) int green() -
blue
public @org.jetbrains.annotations.Range(from=0L, to=255L) int blue()
-