Class PotionEffectTypeHelper
java.lang.Object
net.guizhanss.guizhanlib.minecraft.helper.potion.PotionEffectTypeHelper
药水效果(
PotionEffectType)- Author:
- ybw0014
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetKey(PotionEffectType type) 获取药水效果(PotionEffectType的键名static StringgetName(PotionEffectType type) 返回药水效果(PotionEffectType)的中文名
-
Constructor Details
-
PotionEffectTypeHelper
public PotionEffectTypeHelper()
-
-
Method Details
-
getName
返回药水效果(PotionEffectType)的中文名- Parameters:
type-PotionEffectType药水效果- Returns:
- 药水效果的中文名, 如果获取失败则返回键名
-
getKey
获取药水效果(PotionEffectType的键名- Parameters:
type-PotionEffectType药水效果- Returns:
- 药水效果的键名
-