public class CritAttribute extends SubAttribute
构造器和说明 |
---|
CritAttribute()
double[0] 暴击几率
double[1] 暴击伤害
|
限定符和类型 | 方法和说明 |
---|---|
void |
correct()
纠正属性值
|
void |
eventMethod(EventData eventData)
根据属性枚举执行相应方法
伤害事件
|
String |
getPlaceholder(Player player,
String string)
获取placeholder变量
|
List<String> |
getPlaceholders()
获取placeholder变量列表
|
double |
getValue()
获取战力值
|
List<String> |
introduction()
为属性添加介绍说明
|
boolean |
loadAttribute(String lore)
读取属性方法
|
addAttribute, clone, containsType, getAttributes, getNumber, getPlugin, getPriority, getType, 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> introduction()
SubAttribute
introduction
在类中 SubAttribute
public List<String> getPlaceholders()
SubAttribute
getPlaceholders
在类中 SubAttribute
public boolean loadAttribute(String lore)
SubAttribute
loadAttribute
在类中 SubAttribute
lore
- 物品lorepublic void correct()
SubAttribute
correct
在类中 SubAttribute
public double getValue()
SubAttribute
getValue
在类中 SubAttribute