public class DurabilityCondition extends SubCondition implements Listener
构造器和说明 |
---|
DurabilityCondition() |
限定符和类型 | 方法和说明 |
---|---|
SXConditionReturnType |
determine(LivingEntity entity,
ItemStack item,
String lore)
判断物品是否符合条件
|
void |
onEnable()
条件注册成功后启动时执行的方法
|
containsType, getDurability, getItemLevel, getItemName, getLevel, getMaxDurability, getName, getNumber, getPlugin, getPriority, getType, getUnbreakable, introduction, onDisable, registerCondition
public void onEnable()
SubCondition
onEnable
在类中 SubCondition
public SXConditionReturnType determine(LivingEntity entity, ItemStack item, String lore)
SubCondition
determine
在类中 SubCondition
entity
- LivingEntityitem
- ItemStacklore
- String