接口 DamageType
- 所有超级接口:
Keyed
,Translatable
Represent a type of damage that an entity can receive.
Constants in this class include the base types provided by the vanilla
server. Data packs are capable of registering more types of damage which may
be obtained through the Registry.DAMAGE_TYPE
.
- 另请参阅:
-
字段概要
修饰符和类型字段说明static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
static final DamageType
-
方法概要
修饰符和类型方法说明Get theDamageEffect
for this damage type.Get theDamageScaling
for this damage type.Get theDeathMessageType
for this damage type.float
Get the amount of hunger exhaustion caused by this damage type.Get the translation key, suitable for use in a translation component.
-
字段详细资料
-
IN_FIRE
-
CAMPFIRE
-
LIGHTNING_BOLT
-
ON_FIRE
-
LAVA
-
HOT_FLOOR
-
IN_WALL
-
CRAMMING
-
DROWN
-
STARVE
-
CACTUS
-
FALL
-
FLY_INTO_WALL
-
OUT_OF_WORLD
-
GENERIC
-
MAGIC
-
WITHER
-
DRAGON_BREATH
-
DRY_OUT
-
SWEET_BERRY_BUSH
-
FREEZE
-
STALAGMITE
-
FALLING_BLOCK
-
FALLING_ANVIL
-
FALLING_STALACTITE
-
STING
-
MOB_ATTACK
-
MOB_ATTACK_NO_AGGRO
-
PLAYER_ATTACK
-
ARROW
-
TRIDENT
-
MOB_PROJECTILE
-
SPIT
-
FIREWORKS
-
FIREBALL
-
UNATTRIBUTED_FIREBALL
-
WITHER_SKULL
-
THROWN
-
INDIRECT_MAGIC
-
THORNS
-
EXPLOSION
-
PLAYER_EXPLOSION
-
SONIC_BOOM
-
BAD_RESPAWN_POINT
-
OUTSIDE_BORDER
-
GENERIC_KILL
-
-
方法详细资料
-
getTranslationKey
Get the translation key, suitable for use in a translation component.The returned key is that of the death message sent when this damage type is responsible for the death of an entity.
Note This translation key is only used if
getDeathMessageType()
isDeathMessageType.DEFAULT
- 指定者:
getTranslationKey
在接口中Translatable
- 返回:
- the translation key
-
getDamageScaling
Get theDamageScaling
for this damage type.- 返回:
- the damage scaling
-
getDamageEffect
Get theDamageEffect
for this damage type.- 返回:
- the damage effect
-
getDeathMessageType
Get theDeathMessageType
for this damage type.- 返回:
- the death message type
-
getExhaustion
float getExhaustion()Get the amount of hunger exhaustion caused by this damage type.- 返回:
- the exhaustion
-