/*
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

package com.skelril.skree.content.registry.item.tool.axe;

import com.skelril.nitro.registry.ItemTier;
import com.skelril.nitro.registry.item.ItemTiers;
import com.skelril.nitro.registry.item.ItemToolTypes;
import com.skelril.nitro.registry.item.axe.CustomAxe;
import net.minecraft.item.ItemStack;

import static com.skelril.nitro.item.ItemStackFactory.newItemStack;

public class CrystalAxe extends CustomAxe {
  @Override
  public String __getType() {
    return "crystal";
  }

  @Override
  public ItemStack __getRepairItemStack() {
    return (ItemStack) (Object) newItemStack("skree:sea_crystal");
  }

  @Override
  public double __getHitPower() {
    return ItemTiers.CRYSTAL.getDamage() + ItemToolTypes.AXE.getBaseDamage();
  }

  @Override
  public int __getEnchantability() {
    return ItemTiers.CRYSTAL.getEnchantability();
  }

  @Override
  public ItemTier __getHarvestTier() {
    return ItemTiers.CRYSTAL;
  }

  @Override
  public float __getSpecializedSpeed() {
    return ItemTiers.CRYSTAL.getEfficienyOnProperMaterial();
  }

  @Override
  public int __getMaxUses() {
    return ItemTiers.CRYSTAL.getDurability();
  }
}
