Package me.fullpage.api.interfaces
Class Enchant
java.lang.Object
me.fullpage.api.interfaces.Enchant
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private int
private int
private String
private int
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
isAsync()
boolean
isRun()
abstract void
onPlayerMine(PlayerMineBreakEvent event)
abstract void
void
setBaseCost(int baseCost)
void
setCostIncreasePerUpgrade(int costIncreasePerUpgrade)
void
setMaxLevel(int maxLevel)
void
setRun(boolean run)
-
Field Details
-
enchantName
-
async
private final boolean async -
maxLevel
private int maxLevel -
baseCost
private int baseCost -
costIncreasePerUpgrade
private int costIncreasePerUpgrade -
run
private boolean run
-
-
Constructor Details
-
Enchant
-
-
Method Details
-
onPlayerMine
-
onUpgrade
- Parameters:
mPlayer
- is the MPlayer wrapper of player that is upgradingmPickaxe
- is the upgradable pickaxe
-
setMaxLevel
public void setMaxLevel(int maxLevel) -
getMaxLevel
public int getMaxLevel() -
setBaseCost
public void setBaseCost(int baseCost) -
getBaseCost
public int getBaseCost() -
setCostIncreasePerUpgrade
public void setCostIncreasePerUpgrade(int costIncreasePerUpgrade) -
getCostIncreasePerUpgrade
public int getCostIncreasePerUpgrade() -
getEnchantName
-
isAsync
public boolean isAsync() -
setRun
public void setRun(boolean run) -
isRun
public boolean isRun()
-