程序包 org.bukkit
枚举 EntityEffect
- 所有已实现的接口:
Serializable
,Comparable<EntityEffect>
,Constable
实体能发生的效果列表。
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量说明盔甲架被击中.箭矢上的彩色粒子.Entity breaks item in boot slotEntity breaks item in chestplate slotEntity breaks item in helmet slotEntity breaks item in legging slotEntity breaks item in main handEntity breaks item in off handCat taming failed.Cat taming succeeded.已过时。已分为单独的效果Dolphin has been fed and is locating a structure.Spawns the egg breaking particlesPlays the entity death sound and animation蠹虫进入石头, 刷怪笼刷怪.Plays the fang attack animation烟花爆炸.Fox chews the food in its mouthGoat lowers its head for rammingGoat raises its headGuardian plays the attack sound effect.Plays the hoglin attack animationSpawns honey block fall particles at the entity's feetSpawns honey block slide particles at the entity's feetEntity hurt due to berry bush.Entity hurt due to drowning damage.Entity hurt due to explosion damage.铁傀儡给予玫瑰(译注:应为poppy,即罂粟).Iron golem puts away rose.Plays the iron golem attack animation繁殖实体时的爱心.Player's bad omen effect removed to start or increase raid difficult.兔子跳跃.Plays the ravager attack animationRavager has been stunned for 40 ticks.Resets a spawner minecart's delay to 200.已过时。已分为单独的效果Plays the sheep eating grass animation盾牌阻挡攻击.护盾损坏.Plays sniffer digging sound
Sniffer must have a target and be inSniffer.State.SEARCHING
orSniffer.State.DIGGING
Spawns the snowball breaking particlesSpawns death smoke particlesResets squid rotation.Entity swaps the items in their hand and offhandEntity teleported as a result of chorus fruit or as an endermanEntity hurt by thorns attack.Causes the TNT minecart to ignite, does not play the ignition soundTotem prevents entity death.村民生气时.村民高兴时的粒子效果。村民的红心.Villager splashes particles during a raid.Plays the warden attack animationWarden performs sonic attack animation
Does not play the sound or fire the beamWarden shakes its tendrils女巫的魔法粒子效果.驯服实体成功时的红心.狼在湿水后抖动身体.Stops a wolf that is currently shaking驯服实体失败时的烟雾.Plays the zoglin attack animation僵尸被剧烈抖动转化为村民(译注:僵尸村民被喷溅虚弱药水并喂食金苹果转化为村民)。 -
方法概要
修饰符和类型方法说明获取该效果能应用到的实体超类.byte
getData()
已过时。不安全的参数boolean
isApplicableTo
(@NotNull Class<? extends Entity> clazz) Checks if this effect is applicable to the given entity class.boolean
isApplicableTo
(@NotNull Entity entity) Checks if this effect is applicable to the given entity.static EntityEffect
返回带有指定名称的该类型的枚举常量。static EntityEffect[]
values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
ARROW_PARTICLES
箭矢上的彩色粒子. -
RABBIT_JUMP
兔子跳跃. -
RESET_SPAWNER_MINECART_DELAY
Resets a spawner minecart's delay to 200. Does not effect actual spawning delay, only the speed at which the entity in the spawner spins -
HURT
当怪物收到伤害.原文: When mobs get hurt.
-
DEATH
已过时。已分为单独的效果当怪物死亡.原文: When a mob dies.
-
EGG_BREAK
Spawns the egg breaking particles -
SNOWBALL_BREAK
Spawns the snowball breaking particles -
ENTITY_DEATH
Plays the entity death sound and animationThis will cause client-glitches!
-
FANG_ATTACK
Plays the fang attack animation -
HOGLIN_ATTACK
Plays the hoglin attack animation -
IRON_GOLEN_ATTACK
Plays the iron golem attack animation -
RAVAGER_ATTACK
Plays the ravager attack animation -
WARDEN_ATTACK
Plays the warden attack animation -
ZOGLIN_ATTACK
Plays the zoglin attack animation -
WOLF_SMOKE
驯服实体失败时的烟雾.原文: The smoke when taming a entity fails.
-
WOLF_HEARTS
驯服实体成功时的红心.原文: The hearts when taming a woentitylf succeeds.
-
WOLF_SHAKE
狼在湿水后抖动身体.原文: When a wolf shakes (after being wet).
- 另请参阅:
-
SHEEP_EAT
已过时。已分为单独的效果羊吃草方块.原文: When a sheep eats a LONG_GRASS block.
-
SHEEP_EAT_GRASS
Plays the sheep eating grass animation -
TNT_MINECART_IGNITE
Causes the TNT minecart to ignite, does not play the ignition soundThis will cause client-glitches!
-
IRON_GOLEM_ROSE
铁傀儡给予玫瑰(译注:应为poppy,即罂粟).原文: When an Iron Golem gives a rose.
-
VILLAGER_HEART
村民的红心.原文: Hearts from a villager.
-
VILLAGER_ANGRY
村民生气时.原文: When a villager is angry.
-
VILLAGER_HAPPY
村民高兴时的粒子效果。原文: Happy particles from a villager.
-
WITCH_MAGIC
女巫的魔法粒子效果.原文: Magic particles from a witch.
-
ZOMBIE_TRANSFORM
僵尸被剧烈抖动转化为村民(译注:僵尸村民被喷溅虚弱药水并喂食金苹果转化为村民)。原文: When a zombie transforms into a villager by shaking violently.
-
FIREWORK_EXPLODE
烟花爆炸.原文: When a firework explodes.
-
LOVE_HEARTS
繁殖实体时的爱心. -
SQUID_ROTATE
Resets squid rotation. -
ENTITY_POOF
蠹虫进入石头, 刷怪笼刷怪. -
GUARDIAN_TARGET
Guardian plays the attack sound effect. -
SHIELD_BLOCK
盾牌阻挡攻击. -
SHIELD_BREAK
护盾损坏. -
ARMOR_STAND_HIT
盔甲架被击中. -
THORNS_HURT
Entity hurt by thorns attack. -
IRON_GOLEM_SHEATH
Iron golem puts away rose. -
TOTEM_RESURRECT
Totem prevents entity death. -
HURT_DROWN
Entity hurt due to drowning damage. -
HURT_EXPLOSION
Entity hurt due to explosion damage. -
DOLPHIN_FED
Dolphin has been fed and is locating a structure. -
RAVAGER_STUNNED
Ravager has been stunned for 40 ticks. -
CAT_TAME_FAIL
Cat taming failed. -
CAT_TAME_SUCCESS
Cat taming succeeded. -
VILLAGER_SPLASH
Villager splashes particles during a raid. -
PLAYER_BAD_OMEN_RAID
Player's bad omen effect removed to start or increase raid difficult. -
HURT_BERRY_BUSH
Entity hurt due to berry bush. Prickly! -
FOX_CHEW
Fox chews the food in its mouth -
TELEPORT_ENDER
Entity teleported as a result of chorus fruit or as an enderman -
BREAK_EQUIPMENT_MAIN_HAND
Entity breaks item in main hand -
BREAK_EQUIPMENT_OFF_HAND
Entity breaks item in off hand -
BREAK_EQUIPMENT_HELMET
Entity breaks item in helmet slot -
BREAK_EQUIPMENT_CHESTPLATE
Entity breaks item in chestplate slot -
BREAK_EQUIPMENT_LEGGINGS
Entity breaks item in legging slot -
BREAK_EQUIPMENT_BOOTS
Entity breaks item in boot slot -
HONEY_BLOCK_SLIDE_PARTICLES
Spawns honey block slide particles at the entity's feet -
HONEY_BLOCK_FALL_PARTICLES
Spawns honey block fall particles at the entity's feet -
SWAP_HAND_ITEMS
Entity swaps the items in their hand and offhand -
WOLF_SHAKE_STOP
Stops a wolf that is currently shaking- 另请参阅:
-
GOAT_LOWER_HEAD
Goat lowers its head for ramming- 另请参阅:
-
GOAT_RAISE_HEAD
Goat raises its head- 另请参阅:
-
SPAWN_DEATH_SMOKE
Spawns death smoke particles -
WARDEN_TENDRIL_SHAKE
Warden shakes its tendrils -
WARDEN_SONIC_ATTACK
Warden performs sonic attack animation
Does not play the sound or fire the beam -
SNIFFER_DIG
Plays sniffer digging sound
Sniffer must have a target and be inSniffer.State.SEARCHING
orSniffer.State.DIGGING
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-
getData
已过时。不安全的参数获取实体效果的数据值, 可能不是唯一的.原文: Gets the data value of this EntityEffect, may not be unique.
- 返回:
- 实体效果的数据值
-
getApplicable
获取该效果能应用到的实体超类.原文:Gets entity superclass which this affect is applicable to.
- 返回:
- applicable class
-
isApplicableTo
Checks if this effect is applicable to the given entity.- 参数:
entity
- the entity to check- 返回:
- true if applicable
-
isApplicableTo
Checks if this effect is applicable to the given entity class.- 参数:
clazz
- the entity class to check- 返回:
- true if applicable
-