Package | Description |
---|---|
org.bukkit.block |
Classes used to manipulate the voxels in a
world ,
including special states. |
org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world , including all players, monsters, projectiles, etc. |
org.bukkit.event.entity | |
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 | Description |
---|---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
PotionEffect |
LivingEntity.getPotionEffect(PotionEffectType type) |
Returns the active
PotionEffect of the specified type. |
boolean |
AreaEffectCloud.hasCustomEffect(PotionEffectType type) |
Checks for a specific custom potion effect type on this cloud.
|
boolean |
Arrow.hasCustomEffect(PotionEffectType type) |
Checks for a specific custom potion effect type on this arrow.
|
boolean |
LivingEntity.hasPotionEffect(PotionEffectType type) |
Returns whether the living entity already has an existing effect of
the given
PotionEffectType applied to it. |
boolean |
AreaEffectCloud.removeCustomEffect(PotionEffectType type) |
Removes a custom potion effect from this cloud.
|
boolean |
Arrow.removeCustomEffect(PotionEffectType type) |
Removes a custom potion effect from this arrow.
|
void |
LivingEntity.removePotionEffect(PotionEffectType type) |
Removes any effects present of the given
PotionEffectType . |
Modifier and Type | Method | Description |
---|---|---|
PotionEffectType |
EntityPotionEffectEvent.getModifiedType() |
Gets the modified potion effect type.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
PotionMeta.hasCustomEffect(PotionEffectType type) |
Checks for a specific custom potion effect type on this potion.
|
boolean |
PotionMeta.removeCustomEffect(PotionEffectType type) |
Removes a custom potion effect from this potion.
|
boolean |
PotionMeta.setMainEffect(PotionEffectType type) |
Deprecated.
|
Modifier and Type | Class | Description |
---|---|---|
class |
PotionEffectTypeWrapper |
Modifier and Type | Field | Description |
---|---|---|
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.BAD_OMEN |
oof.
|
static PotionEffectType |
PotionEffectType.BLINDNESS |
Blinds an entity.
|
static PotionEffectType |
PotionEffectType.CONDUIT_POWER |
Effects granted by a nearby conduit.
|
static PotionEffectType |
PotionEffectType.CONFUSION |
Warps vision on the client.
|
static PotionEffectType |
PotionEffectType.DAMAGE_RESISTANCE |
Decreases damage dealt to an entity.
|
static PotionEffectType |
PotionEffectType.DOLPHINS_GRACE |
Squee'ek uh'k kk'kkkk squeek eee'eek.
|
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.HERO_OF_THE_VILLAGE |
\o/.
|
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.SLOW_FALLING |
Slows entity fall rate.
|
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.
|
Modifier and Type | Method | Description |
---|---|---|
static PotionEffectType |
PotionEffectType.getById(int id) |
Deprecated.
Magic value
|
static PotionEffectType |
PotionEffectType.getByName(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. |
Modifier and Type | Method | Description |
---|---|---|
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) |
Deprecated.
Misleading
|
static void |
PotionEffectType.registerPotionEffectType(PotionEffectType type) |
Registers an effect type with the given object.
|
Constructor | Description |
---|---|
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,
boolean icon) |
Creates a potion effect.
|
Copyright © 2019. All rights reserved.