程序包 | 说明 |
---|---|
org.bukkit.block |
用于操作在
世界 内的三位像素(方块),包括一些特定的状态. |
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.inventory.meta |
用于操作可以被存储在
物品堆 的额外数据的接口. |
org.bukkit.potion |
代表每种
药水 属性和操作的类的集合. |
限定符和类型 | 方法和说明 |
---|---|
void |
Beacon.setPrimaryEffect(PotionEffectType effect)
Set the primary effect on this beacon, or null to clear.
|
void |
Beacon.setSecondaryEffect(PotionEffectType effect)
Set the secondary effect on this beacon, or null to clear.
|
限定符和类型 | 方法和说明 |
---|---|
PotionEffect |
LivingEntity.getPotionEffect(PotionEffectType type)
返回指定类型的有效
PotionEffect 。 |
boolean |
TippedArrow.hasCustomEffect(PotionEffectType type)
Checks for a specific custom potion effect type on this arrow.
|
boolean |
AreaEffectCloud.hasCustomEffect(PotionEffectType type)
检查这片云中是否存在一种特定的自定义药水效果类型.
|
boolean |
LivingEntity.hasPotionEffect(PotionEffectType type)
返回生物实体是否已经存在一个指定的
PotionEffectType 效果。 |
boolean |
TippedArrow.removeCustomEffect(PotionEffectType type)
Removes a custom potion effect from this arrow.
|
boolean |
AreaEffectCloud.removeCustomEffect(PotionEffectType type)
从这片云移除一个自定义药水效果.
|
void |
LivingEntity.removePotionEffect(PotionEffectType type)
移除当前所有指定的
PotionEffectType 效果。 |
限定符和类型 | 方法和说明 |
---|---|
boolean |
PotionMeta.hasCustomEffect(PotionEffectType type)
Checks for a specific custom potion effect type on this potion.
|
boolean |
PotionMeta.removeCustomEffect(PotionEffectType type)
移除这个药水的一个自定义效果.
|
boolean |
PotionMeta.setMainEffect(PotionEffectType type)
|
限定符和类型 | 类和说明 |
---|---|
class |
PotionEffectTypeWrapper |
限定符和类型 | 字段和说明 |
---|---|
static PotionEffectType |
PotionEffectType.ABSORPTION
Increases the maximum health of an entity with health that cannot be
regenerated, but is refilled every 30 seconds.
|
static PotionEffectType |
PotionEffectType.BLINDNESS
Blinds an entity.
|
static PotionEffectType |
PotionEffectType.CONFUSION
Warps vision on the client.
|
static PotionEffectType |
PotionEffectType.DAMAGE_RESISTANCE
Decreases damage dealt to an entity.
|
static PotionEffectType |
PotionEffectType.FAST_DIGGING
Increases dig speed.
|
static PotionEffectType |
PotionEffectType.FIRE_RESISTANCE
Stops fire damage.
|
static PotionEffectType |
PotionEffectType.GLOWING
Outlines the entity so that it can be seen from afar.
|
static PotionEffectType |
PotionEffectType.HARM
Hurts an entity.
|
static PotionEffectType |
PotionEffectType.HEAL
Heals an entity.
|
static PotionEffectType |
PotionEffectType.HEALTH_BOOST
Increases the maximum health of an entity.
|
static PotionEffectType |
PotionEffectType.HUNGER
Increases hunger.
|
static PotionEffectType |
PotionEffectType.INCREASE_DAMAGE
Increases damage dealt.
|
static PotionEffectType |
PotionEffectType.INVISIBILITY
Grants invisibility.
|
static PotionEffectType |
PotionEffectType.JUMP
Increases jump height.
|
static PotionEffectType |
PotionEffectType.LEVITATION
Causes the entity to float into the air.
|
static PotionEffectType |
PotionEffectType.LUCK
Loot table luck.
|
static PotionEffectType |
PotionEffectType.NIGHT_VISION
Allows an entity to see in the dark.
|
static PotionEffectType |
PotionEffectType.POISON
Deals damage to an entity over time.
|
static PotionEffectType |
PotionEffectType.REGENERATION
Regenerates health.
|
static PotionEffectType |
PotionEffectType.SATURATION
Increases the food level of an entity each tick.
|
static PotionEffectType |
PotionEffectType.SLOW
Decreases movement speed.
|
static PotionEffectType |
PotionEffectType.SLOW_DIGGING
Decreases dig speed.
|
static PotionEffectType |
PotionEffectType.SPEED
Increases movement speed.
|
static PotionEffectType |
PotionEffectType.UNLUCK
Loot table unluck.
|
static PotionEffectType |
PotionEffectType.WATER_BREATHING
Allows breathing underwater.
|
static PotionEffectType |
PotionEffectType.WEAKNESS
Decreases damage dealt by an entity.
|
static PotionEffectType |
PotionEffectType.WITHER
Deals damage to an entity over time and gives the health to the
shooter.
|
限定符和类型 | 方法和说明 |
---|---|
static PotionEffectType |
PotionEffectType.getById(int id)
已过时。
Magic value
|
static PotionEffectType |
PotionEffectType.getByName(java.lang.String name)
Gets the effect type specified by the given name.
|
PotionEffectType |
PotionType.getEffectType() |
PotionEffectType |
PotionEffect.getType()
Returns the
PotionEffectType of this effect. |
PotionEffectType |
PotionEffectTypeWrapper.getType()
Get the potion type bound to this wrapper.
|
static PotionEffectType[] |
PotionEffectType.values()
Returns an array of all the registered
PotionEffectType s. |
限定符和类型 | 方法和说明 |
---|---|
PotionEffect |
PotionBrewer.createEffect(PotionEffectType potion,
int duration,
int amplifier)
Creates a
PotionEffect from the given PotionEffectType ,
applying duration modifiers and checks. |
static PotionType |
PotionType.getByEffect(PotionEffectType effectType)
已过时。
Misleading
|
static void |
PotionEffectType.registerPotionEffectType(PotionEffectType type)
Registers an effect type with the given object.
|
构造器和说明 |
---|
PotionEffect(PotionEffectType type,
int duration,
int amplifier)
Creates a potion effect.
|
PotionEffect(PotionEffectType type,
int duration,
int amplifier,
boolean ambient)
Creates a potion effect.
|
PotionEffect(PotionEffectType type,
int duration,
int amplifier,
boolean ambient,
boolean particles)
Creates a potion effect with no defined color.
|
PotionEffect(PotionEffectType type,
int duration,
int amplifier,
boolean ambient,
boolean particles,
Color color)
Creates a potion effect.
|