2015-12-28 00:38:12 +00:00
|
|
|
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
|
2016-01-19 06:34:12 +00:00
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2015-12-28 00:38:12 +00:00
|
|
|
import WayofTime.bloodmagic.registry.ModPotions;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.potion.PotionEffect;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
2015-12-30 20:34:40 +00:00
|
|
|
public class ItemSigilHaste extends ItemSigilToggleable
|
|
|
|
{
|
|
|
|
public ItemSigilHaste()
|
|
|
|
{
|
2015-12-28 00:38:12 +00:00
|
|
|
super("haste", 250);
|
2016-01-19 06:34:12 +00:00
|
|
|
setRegistryName(Constants.BloodMagicItem.SIGIL_HASTE.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)
|
|
|
|
{
|
2015-12-28 00:38:12 +00:00
|
|
|
player.addPotionEffect(new PotionEffect(ModPotions.boost.id, 2, 0, true, false));
|
|
|
|
}
|
|
|
|
}
|