程序包 | 说明 |
---|---|
org.bukkit |
Bukkit的常用类.
|
org.bukkit.configuration |
专门用于处理插件运行时配置的类.
|
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.inventory |
参与操作玩家物品栏和物品交互的类.
|
org.bukkit.inventory.meta |
用于操作可以被存储在
物品堆 的额外数据的接口. |
org.bukkit.potion |
代表每种
药水 属性和操作的类的集合. |
限定符和类型 | 字段和说明 |
---|---|
static Color |
Color.AQUA
浅绿,或(R,G,B) 表示为 0x00,0xFF,0xFF)
|
static Color |
Color.BLACK
黑色,或(R,G,B) 表示为 0x00,0x00,0x00)
|
static Color |
Color.BLUE
蓝色,或(R,G,B) 表示为 0x00,0x00,0xFF)
|
static Color |
Color.FUCHSIA
樱红色,或(R,G,B) 表示为 0xFF,0x00,0xFF)
|
static Color |
Color.GRAY
灰色,或(R,G,B) 表示为 0x80,0x80,0x80)
|
static Color |
Color.GREEN
绿色,或(R,G,B) 表示为 0x00,0x80,0x00)
|
static Color |
Color.LIME
黄绿色,或(R,G,B) 表示为 0x00,0xFF,0x00)
|
static Color |
Color.MAROON
栗色,或(R,G,B) 表示为 0x80,0x00,0x00)
|
static Color |
Color.NAVY
海军色,或(R,G,B) 表示为 0x00,0x00,0x80)
|
static Color |
Color.OLIVE
橄榄色,或(R,G,B) 表示为 0x80,0x80,0x00)
|
static Color |
Color.ORANGE
橙色,或(R,G,B) 表示为 0xFF,0xA5,0x00)
|
static Color |
Color.PURPLE
紫色,或(R,G,B) 表示为 0x80,0x00,0x80)
|
static Color |
Color.RED
红色,或(R,G,B) 表示为 0xFF,0x00,0x00)
|
static Color |
Color.SILVER
银色,或(R,G,B) 表示为 0xC0,0xC0,0xC0)
|
static Color |
Color.TEAL
蓝绿色,或(R,G,B) 表示为 0x00,0x80,0x80)
|
static Color |
Color.WHITE
白色,或(R,G,B) 表示为 0xFF,0xFF,0xFF)
|
static Color |
Color.YELLOW
黄色,或(R,G,B) 表示为 0xFF,0xFF,0x00)
|
限定符和类型 | 方法和说明 |
---|---|
static Color |
Color.deserialize(java.util.Map<java.lang.String,java.lang.Object> map) |
static 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 Color |
Color.fromBGR(int blue,
int green,
int red)
用 蓝,绿,红 创建一个新的颜色对象
|
static Color |
Color.fromRGB(int rgb)
从一个RGB整数中创建一个新的颜色对象,该对象包含最低24bits
|
static Color |
Color.fromRGB(int red,
int green,
int blue)
用 红,绿,蓝 创建一个新的颜色对象
|
Color |
DyeColor.getColor()
获取这个染料代表的颜色.
|
Color |
DyeColor.getFireworkColor()
获取这个染料代表的烟花颜色.
|
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
|
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
|
Color |
Color.setBlue(int blue)
Creates a new Color object with specified component
|
Color |
Color.setGreen(int green)
Creates a new Color object with specified component
|
Color |
Color.setRed(int red)
Creates a new Color object with specified component
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<Color> |
FireworkEffect.getColors()
获取烟花效果的主颜色。
|
java.util.List<Color> |
FireworkEffect.getFadeColors()
获取烟花效果的淡出颜色。
|
限定符和类型 | 方法和说明 |
---|---|
static DyeColor |
DyeColor.getByColor(Color color)
获取给定的颜色值的染料颜色.
|
static DyeColor |
DyeColor.getByFireworkColor(Color color)
获取给定的颜色颜色值的染料颜色.
|
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
|
FireworkEffect.Builder |
FireworkEffect.Builder.withColor(Color... colors)
向烟花效果添加几种主颜色。
|
FireworkEffect.Builder |
FireworkEffect.Builder.withColor(Color color)
向烟花效果添加一种主颜色。
|
FireworkEffect.Builder |
FireworkEffect.Builder.withFade(Color... colors)
向烟花效果添加几种淡出颜色。
|
FireworkEffect.Builder |
FireworkEffect.Builder.withFade(Color color)
向烟花效果添加一种淡出颜色。
|
限定符和类型 | 方法和说明 |
---|---|
Color |
MemorySection.getColor(java.lang.String path) |
Color |
ConfigurationSection.getColor(java.lang.String path)
在指定路径获取一个Color类型的值.
|
Color |
MemorySection.getColor(java.lang.String path,
Color def) |
Color |
ConfigurationSection.getColor(java.lang.String path,
Color def)
在指定路径上获取一个
Color , 如果无法获取, 则直接返回指定默认值. |
限定符和类型 | 方法和说明 |
---|---|
Color |
MemorySection.getColor(java.lang.String path,
Color def) |
Color |
ConfigurationSection.getColor(java.lang.String path,
Color def)
在指定路径上获取一个
Color , 如果无法获取, 则直接返回指定默认值. |
限定符和类型 | 方法和说明 |
---|---|
Color |
TippedArrow.getColor()
Gets the color of this arrow.
|
Color |
AreaEffectCloud.getColor()
获取这片云的颜色,即粒子的颜色。
|
限定符和类型 | 方法和说明 |
---|---|
void |
TippedArrow.setColor(Color color)
Sets the color of this arrow.
|
void |
AreaEffectCloud.setColor(Color color)
设置这片云的颜色, 即粒子的颜色.
|
限定符和类型 | 方法和说明 |
---|---|
Color |
ItemFactory.getDefaultLeatherColor()
返回所有皮甲的默认颜色.
|
限定符和类型 | 方法和说明 |
---|---|
Color |
LeatherArmorMeta.getColor()
获取这个盔甲的颜色.如果它还没有被设置,就会返回
ItemFactory.getDefaultLeatherColor() . |
Color |
MapMeta.getColor()
Gets the map color that is set.
|
Color |
PotionMeta.getColor()
Gets the potion color that is set.
|
限定符和类型 | 方法和说明 |
---|---|
void |
LeatherArmorMeta.setColor(Color color)
设置这个盔甲的颜色.
|
void |
MapMeta.setColor(Color color)
Sets the map color.
|
void |
PotionMeta.setColor(Color color)
Sets the potion color.
|
限定符和类型 | 方法和说明 |
---|---|
Color |
PotionEffect.getColor() |
abstract Color |
PotionEffectType.getColor()
Returns the color of this effect type.
|
Color |
PotionEffectTypeWrapper.getColor() |
构造器和说明 |
---|
PotionEffect(PotionEffectType type,
int duration,
int amplifier,
boolean ambient,
boolean particles,
Color color)
Creates a potion effect.
|