public static enum EntityDamageEvent.DamageModifier extends Enum<EntityDamageEvent.DamageModifier>
列挙型定数と説明 |
---|
ABSORPTION
This represents the damage reduction caused by the absorption potion
effect.
|
ARMOR
This represents the damage reduction caused by wearing armor.
|
BASE
This represents the amount of damage being done, also known as the
raw
EntityDamageEvent.getDamage() . |
BLOCKING
This represents the damage reduction caused by blocking, only present for
Players . |
HARD_HAT
This represents the damage reduced by a wearing a helmet when hit
by a falling block.
|
MAGIC
This represents the damage reduction caused by the combination of:
Armor enchantments
Witch's potion resistance
|
RESISTANCE
This represents the damage reduction caused by the Resistance potion effect.
|
修飾子とタイプ | メソッドと説明 |
---|---|
static EntityDamageEvent.DamageModifier |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static EntityDamageEvent.DamageModifier[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final EntityDamageEvent.DamageModifier BASE
EntityDamageEvent.getDamage()
.public static final EntityDamageEvent.DamageModifier HARD_HAT
public static final EntityDamageEvent.DamageModifier BLOCKING
Players
.public static final EntityDamageEvent.DamageModifier ARMOR
public static final EntityDamageEvent.DamageModifier RESISTANCE
public static final EntityDamageEvent.DamageModifier MAGIC
public static final EntityDamageEvent.DamageModifier ABSORPTION
public static EntityDamageEvent.DamageModifier[] values()
for(EntityDamageEvent.DamageModifier c: EntityDamageEvent.DamageModifier.values()) System.out.println(c);
public static EntityDamageEvent.DamageModifier valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合Copyright © 2016. All rights reserved.