public enum PotionType extends Enum<PotionType>
列挙型定数と説明 |
---|
AWKWARD |
FIRE_RESISTANCE |
INSTANT_DAMAGE |
INSTANT_HEAL |
INVISIBILITY |
JUMP |
LUCK |
MUNDANE |
NIGHT_VISION |
POISON |
REGEN |
SLOWNESS |
SPEED |
STRENGTH |
THICK |
UNCRAFTABLE |
WATER |
WATER_BREATHING |
WEAKNESS |
修飾子とタイプ | メソッドと説明 |
---|---|
static PotionType |
getByDamageValue(int damage)
非推奨です。
Non-functional
|
static PotionType |
getByEffect(PotionEffectType effectType)
非推奨です。
Misleading
|
int |
getDamageValue()
非推奨です。
Non-functional
|
PotionEffectType |
getEffectType() |
int |
getMaxLevel() |
boolean |
isExtendable()
Checks if the potion type has an extended state.
|
boolean |
isInstant() |
boolean |
isUpgradeable()
Checks if the potion type has an upgraded state.
|
static PotionType |
valueOf(String name)
指定した名前を持つこの型の列挙型定数を返します。
|
static PotionType[] |
values()
この列挙型の定数を含む配列を宣言されている順序で返します。
|
public static final PotionType UNCRAFTABLE
public static final PotionType WATER
public static final PotionType MUNDANE
public static final PotionType THICK
public static final PotionType AWKWARD
public static final PotionType NIGHT_VISION
public static final PotionType INVISIBILITY
public static final PotionType JUMP
public static final PotionType FIRE_RESISTANCE
public static final PotionType SPEED
public static final PotionType SLOWNESS
public static final PotionType WATER_BREATHING
public static final PotionType INSTANT_HEAL
public static final PotionType INSTANT_DAMAGE
public static final PotionType POISON
public static final PotionType REGEN
public static final PotionType STRENGTH
public static final PotionType WEAKNESS
public static final PotionType LUCK
public static PotionType[] values()
for(PotionType c: PotionType.values()) System.out.println(c);
public static PotionType valueOf(String name)
name
- 返される列挙型定数の名前。IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合NullPointerException
- 引数がnullの場合public PotionEffectType getEffectType()
public boolean isInstant()
public boolean isUpgradeable()
public boolean isExtendable()
@Deprecated public int getDamageValue()
public int getMaxLevel()
@Deprecated public static PotionType getByDamageValue(int damage)
@Deprecated public static PotionType getByEffect(PotionEffectType effectType)
Copyright © 2016. All rights reserved.