Class DataEntry

java.lang.Object
studio.magemonkey.mirage.DataEntry

public class DataEntry extends Object
  • Constructor Details

  • 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 block
      apply - 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

      @Nullable public @Nullable BlockType chance()
    • getMaterials

      public Set<BlockType> getMaterials()
    • getBreakMaterial

      public BlockType getBreakMaterial()
    • getRegenerationDelay

      public Long getRegenerationDelay()
    • getTools

      public Collection<ToolType> getTools()
    • getToolMessage

      @Nullable public @Nullable String getToolMessage()
    • getToolDamage

      public int getToolDamage()
    • getChanceMap

      public Map<Double,BlockType> getChanceMap()
    • getCommands

      public List<DataEntry.Command> getCommands()
    • cancelDrop

      public boolean cancelDrop()
    • isAgeable

      public boolean isAgeable()
    • getAge

      public int getAge()