2015-12-28 00:38:12 +00:00
|
|
|
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
2016-03-18 19:38:26 +00:00
|
|
|
import net.minecraft.init.MobEffects;
|
2015-12-28 00:38:12 +00:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.potion.PotionEffect;
|
|
|
|
import net.minecraft.world.World;
|
2016-03-18 19:38:26 +00:00
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2015-12-28 00:38:12 +00:00
|
|
|
|
2016-03-23 01:10:05 +00:00
|
|
|
public class ItemSigilFastMiner extends ItemSigilToggleableBase
|
2015-12-30 20:34:40 +00:00
|
|
|
{
|
|
|
|
public ItemSigilFastMiner()
|
|
|
|
{
|
2015-12-28 00:38:12 +00:00
|
|
|
super("fastMiner", 100);
|
2016-01-19 06:34:12 +00:00
|
|
|
setRegistryName(Constants.BloodMagicItem.SIGIL_FAST_MINER.getRegName());
|
2015-12-28 00:38:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-30 20:34:40 +00:00
|
|
|
public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected)
|
|
|
|
{
|
2016-03-18 19:38:26 +00:00
|
|
|
player.addPotionEffect(new PotionEffect(MobEffects.digSpeed, 2, 0, true, false));
|
2015-12-28 00:38:12 +00:00
|
|
|
}
|
|
|
|
}
|