Package studio.magemonkey.mirage
Class DataEntry
java.lang.Object
studio.magemonkey.mirage.DataEntry
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable AmountRewardapplyCostsAndRewards(org.bukkit.entity.Player player, boolean apply) Checks if the provided Player can afford the costs of mining a block.boolean@Nullable BlockTypechance()voidexecuteCommands(org.bukkit.entity.Player player) intgetAge()int@Nullable StringgetTools()booleanbooleanisUsableTool(org.bukkit.inventory.ItemStack itemStack) booleanmeetsRequirements(org.bukkit.entity.Player player)
-
Constructor Details
-
DataEntry
-
-
Method Details
-
isUsableTool
public boolean isUsableTool(org.bukkit.inventory.ItemStack itemStack) -
meetsRequirements
public boolean meetsRequirements(org.bukkit.entity.Player player) -
applyCostsAndRewards
@Nullable public @Nullable AmountReward applyCostsAndRewards(org.bukkit.entity.Player player, boolean apply) Checks if the provided Player can afford the costs of mining a block.- Parameters:
player- The Player who attempted to mine the blockapply- Whether to immediately apply all mining costs and rewards to the provided player, in case they can afford the costs.- Returns:
- the first cost detected that the Player can't afford, or null if they can afford everything.
-
executeCommands
public void executeCommands(org.bukkit.entity.Player player) -
chance
-
getMaterials
-
getBreakMaterial
-
getRegenerationDelay
-
getTools
-
getToolMessage
-
getToolDamage
public int getToolDamage() -
getChanceMap
-
getCommands
-
cancelDrop
public boolean cancelDrop() -
isAgeable
public boolean isAgeable() -
getAge
public int getAge()
-