Package | Description |
---|---|
com.destroystokyo.paper | |
org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
org.bukkit.configuration |
Classes dedicated to handling a plugin's runtime configuration.
|
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
org.bukkit.inventory.meta |
The interfaces used when manipulating extra data can can be stored inside
item stacks . |
org.bukkit.potion |
Classes to represent various
potion
properties and manipulation. |
Modifier and Type | Method and Description |
---|---|
@NotNull ParticleBuilder |
ParticleBuilder.color(@Nullable Color color)
Sets the particle Color.
|
@NotNull ParticleBuilder |
ParticleBuilder.color(@Nullable Color color,
float size)
Sets the particle Color and size.
|
Modifier and Type | Field and Description |
---|---|
static Color |
Color.AQUA
Aqua, or (0x00,0xFF,0xFF) in (R,G,B)
|
static Color |
Color.BLACK
Black, or (0x00,0x00,0x00) in (R,G,B)
|
static Color |
Color.BLUE
Blue, or (0x00,0x00,0xFF) in (R,G,B)
|
static Color |
Color.FUCHSIA
Fuchsia, or (0xFF,0x00,0xFF) in (R,G,B)
|
static Color |
Color.GRAY
Gray, or (0x80,0x80,0x80) in (R,G,B)
|
static Color |
Color.GREEN
Green, or (0x00,0x80,0x00) in (R,G,B)
|
static Color |
Color.LIME
Lime, or (0x00,0xFF,0x00) in (R,G,B)
|
static Color |
Color.MAROON
Maroon, or (0x80,0x00,0x00) in (R,G,B)
|
static Color |
Color.NAVY
Navy, or (0x00,0x00,0x80) in (R,G,B)
|
static Color |
Color.OLIVE
Olive, or (0x80,0x80,0x00) in (R,G,B)
|
static Color |
Color.ORANGE
Orange, or (0xFF,0xA5,0x00) in (R,G,B)
|
static Color |
Color.PURPLE
Purple, or (0x80,0x00,0x80) in (R,G,B)
|
static Color |
Color.RED
Red, or (0xFF,0x00,0x00) in (R,G,B)
|
static Color |
Color.SILVER
Silver, or (0xC0,0xC0,0xC0) in (R,G,B)
|
static Color |
Color.TEAL
Teal, or (0x00,0x80,0x80) in (R,G,B)
|
static Color |
Color.WHITE
White, or (0xFF,0xFF,0xFF) in (R,G,B)
|
static Color |
Color.YELLOW
Yellow, or (0xFF,0xFF,0x00) in (R,G,B)
|
Modifier and Type | Method and Description |
---|---|
static @NotNull Color |
Color.deserialize(@NotNull Map<String,Object> map) |
static @NotNull Color |
Color.fromBGR(int bgr)
Creates a new color object from an integer that contains the blue,
green, and red bytes in the lowest order 24 bits.
|
static @NotNull Color |
Color.fromBGR(int blue,
int green,
int red)
Creates a new Color object from a blue, green, and red
|
static @NotNull Color |
Color.fromRGB(int rgb)
Creates a new color object from an integer that contains the red,
green, and blue bytes in the lowest order 24 bits.
|
static @NotNull Color |
Color.fromRGB(int red,
int green,
int blue)
Creates a new Color object from a red, green, and blue
|
@NotNull Color |
DyeColor.getColor()
Gets the color that this dye represents.
|
@NotNull Color |
Particle.DustOptions.getColor()
The color of the particles to be displayed.
|
@NotNull Color |
DyeColor.getFireworkColor()
Gets the firework color that this dye represents.
|
@NotNull Color |
Color.mixColors(Color... colors)
Creates a new color with its RGB components changed as if it was dyed
with the colors passed in, replicating vanilla workbench dyeing
|
@NotNull Color |
Color.mixDyes(DyeColor... colors)
Creates a new color with its RGB components changed as if it was dyed
with the colors passed in, replicating vanilla workbench dyeing
|
@NotNull Color |
Color.setBlue(int blue)
Creates a new Color object with specified component
|
@NotNull Color |
Color.setGreen(int green)
Creates a new Color object with specified component
|
@NotNull Color |
Color.setRed(int red)
Creates a new Color object with specified component
|
Modifier and Type | Method and Description |
---|---|
static @Nullable DyeColor |
DyeColor.getByColor(@NotNull Color color)
Gets the DyeColor with the given color value.
|
static @Nullable DyeColor |
DyeColor.getByFireworkColor(@NotNull Color color)
Gets the DyeColor with the given firework color value.
|
@NotNull Color |
Color.mixColors(Color... colors)
Creates a new color with its RGB components changed as if it was dyed
with the colors passed in, replicating vanilla workbench dyeing
|
@NotNull FireworkEffect.Builder |
FireworkEffect.Builder.withColor(Color... colors)
Add several primary colors to the firework effect.
|
@NotNull FireworkEffect.Builder |
FireworkEffect.Builder.withColor(@NotNull Color color)
Add a primary color to the firework effect.
|
@NotNull FireworkEffect.Builder |
FireworkEffect.Builder.withFade(Color... colors)
Add several fade colors to the firework effect.
|
@NotNull FireworkEffect.Builder |
FireworkEffect.Builder.withFade(@NotNull Color color)
Add a fade color to the firework effect.
|
Constructor and Description |
---|
DustOptions(@NotNull Color color,
float size) |
Modifier and Type | Method and Description |
---|---|
@Nullable Color |
ConfigurationSection.getColor(@NotNull String path)
Gets the requested Color by path.
|
@Nullable Color |
MemorySection.getColor(@NotNull String path) |
@Nullable Color |
ConfigurationSection.getColor(@NotNull String path,
@Nullable Color def)
Gets the requested
Color by path, returning a default value if
not found. |
@Nullable Color |
MemorySection.getColor(@NotNull String path,
@Nullable Color def) |
Modifier and Type | Method and Description |
---|---|
@Nullable Color |
ConfigurationSection.getColor(@NotNull String path,
@Nullable Color def)
Gets the requested
Color by path, returning a default value if
not found. |
@Nullable Color |
MemorySection.getColor(@NotNull String path,
@Nullable Color def) |
Modifier and Type | Method and Description |
---|---|
@NotNull Color |
Arrow.getColor()
Gets the color of this arrow.
|
@NotNull Color |
AreaEffectCloud.getColor()
Gets the color of this cloud.
|
Modifier and Type | Method and Description |
---|---|
void |
Arrow.setColor(@NotNull Color color)
Sets the color of this arrow.
|
void |
AreaEffectCloud.setColor(@NotNull Color color)
Sets the color of this cloud.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Color |
ItemFactory.getDefaultLeatherColor()
Returns the default color for all leather armor.
|
Modifier and Type | Method and Description |
---|---|
@Nullable Color |
PotionMeta.getColor()
Gets the potion color that is set.
|
@Nullable Color |
MapMeta.getColor()
Gets the map color that is set.
|
@NotNull Color |
LeatherArmorMeta.getColor()
Gets the color of the armor.
|
Modifier and Type | Method and Description |
---|---|
void |
PotionMeta.setColor(@Nullable Color color)
Sets the potion color.
|
void |
MapMeta.setColor(@Nullable Color color)
Sets the map color.
|
void |
LeatherArmorMeta.setColor(@Nullable Color color)
Sets the color of the armor.
|
Modifier and Type | Method and Description |
---|---|
@NotNull Color |
PotionEffectTypeWrapper.getColor() |
@Nullable Color |
PotionEffect.getColor()
Deprecated.
color is not part of potion effects
|
abstract @NotNull Color |
PotionEffectType.getColor()
Returns the color of this effect type.
|
Copyright © 2021. All rights reserved.