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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAlphaColor(@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) intalpha()intasRGB()@org.jetbrains.annotations.Range(from=0L, to=255L) intblue()static AlphaColordecode(NBT nbt, ClientVersion version) static NBTencode(AlphaColor color, ClientVersion version) @org.jetbrains.annotations.Range(from=0L, to=255L) intgreen()@org.jetbrains.annotations.Range(from=0L, to=255L) intred()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, writeMethods 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
-
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()
-