Package appeng.items.tools.quartz

Source Code of appeng.items.tools.quartz.ToolQuartzPickaxe

package appeng.items.tools.quartz;

import java.util.EnumSet;

import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemStack;
import appeng.core.features.AEFeature;
import appeng.core.features.AEFeatureHandler;
import appeng.core.features.IAEFeature;
import appeng.util.Platform;

public class ToolQuartzPickaxe extends ItemPickaxe implements IAEFeature
{

  final AEFeature type;
  final AEFeatureHandler feature;

  @Override
  public AEFeatureHandler feature()
  {
    return feature;
  }

  @Override
  public boolean getIsRepairable(ItemStack a, ItemStack b)
  {
    return Platform.canRepair( type, a, b );
  }

  public ToolQuartzPickaxe(AEFeature Type) {
    super( ToolMaterial.IRON );
    feature = new AEFeatureHandler( EnumSet.of( type = Type, AEFeature.QuartzPickaxe ), this, Type.name() );
  }

  @Override
  public void postInit()
  {
    // override!
  }
}
TOP

Related Classes of appeng.items.tools.quartz.ToolQuartzPickaxe

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.