程序包 org.bukkit
枚举 EntityEffect
- 所有已实现的接口:
Serializable
,Comparable<EntityEffect>
,java.lang.constant.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.蠹虫进入石头, 刷怪笼刷怪.烟花爆炸.Fox chews the food in its mouthGuardian plays the attack sound effect.当怪物收到伤害.Entity hurt due to berry bush.Entity hurt due to drowning damage.Entity hurt due to explosion damage.铁傀儡给予玫瑰(译注:应为poppy,即罂粟).Iron golem puts away rose.繁殖实体时的爱心.Player's bad omen effect removed to start or increase raid difficult.兔子跳跃.Ravager has been stunned for 40 ticks.已过时。虽然该效果可能在没有生命的实体上触发其他事件, 但该效果唯一支持的用途是在活体上盾牌阻挡攻击.护盾损坏.Resets squid rotation.Entity teleported as a result of chorus fruit or as an endermanEntity hurt by thorns attack.Totem prevents entity death.村民生气时.村民高兴时的粒子效果。村民的红心.Villager splashes particles during a raid.女巫的魔法粒子效果.驯服狼成功时的红心.狼在湿水后抖动身体.驯服狼失败时的烟雾.僵尸被剧烈抖动转化为村民(译注:僵尸村民被喷溅虚弱药水并喂食金苹果转化为村民)。 -
方法概要
修饰符和类型方法说明获取该效果能应用到的实体超类.byte
getData()
已过时。不安全的参数static EntityEffect
返回带有指定名称的该类型的枚举常量。static EntityEffect[]
values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
ARROW_PARTICLES
箭矢上的彩色粒子. -
RABBIT_JUMP
兔子跳跃. -
HURT
当怪物收到伤害.原文: When mobs get hurt.
-
DEATH
已过时。虽然该效果可能在没有生命的实体上触发其他事件, 但该效果唯一支持的用途是在活体上当怪物死亡.原文: When a mob dies.
-
WOLF_SMOKE
驯服狼失败时的烟雾.原文: The smoke when taming a wolf fails.
-
WOLF_HEARTS
驯服狼成功时的红心.原文: The hearts when taming a wolf succeeds.
-
WOLF_SHAKE
狼在湿水后抖动身体.原文: When a wolf shakes (after being wet).
-
SHEEP_EAT
已过时。虽然该效果可能在没有生命的实体上触发其他事件, 但该效果唯一支持的用途是在活体上羊吃草方块.原文: When a sheep eats a LONG_GRASS block.
-
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
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-
getData
已过时。不安全的参数获取实体效果的数据值.原文: Gets the data value of this EntityEffect
- 返回:
- 实体效果的数据值
-
getApplicable
获取该效果能应用到的实体超类.原文:Gets entity superclass which this affect is applicable to.
- 返回:
- applicable class
-