public class SlownessAttribute extends SubAttribute
构造器和说明 |
---|
SlownessAttribute()
double[0] 缓慢几率
|
限定符和类型 | 方法和说明 |
---|---|
void |
eventMethod(EventData eventData)
根据属性枚举执行相应方法
伤害事件
|
String |
getPlaceholder(Player player,
String string)
获取placeholder变量
|
List<String> |
getPlaceholders()
获取placeholder变量列表
|
double |
getValue()
获取战力值
|
boolean |
loadAttribute(String lore)
读取属性方法
|
addAttribute, clone, containsType, correct, getAttributes, getNumber, getPlugin, getPriority, getType, introduction, loadFromString, onDisable, onEnable, probability, registerAttribute, saveToString, setAttributes
public void eventMethod(EventData eventData)
SubAttribute
eventMethod
在类中 SubAttribute
eventData
- 事件数据public String getPlaceholder(Player player, String string)
SubAttribute
getPlaceholder
在类中 SubAttribute
player
- Playerstring
- Stringpublic List<String> getPlaceholders()
SubAttribute
getPlaceholders
在类中 SubAttribute
public boolean loadAttribute(String lore)
SubAttribute
loadAttribute
在类中 SubAttribute
lore
- 物品lorepublic double getValue()
SubAttribute
getValue
在类中 SubAttribute