package WayofTime.bloodmagic.item.sigil; import WayofTime.bloodmagic.api.Constants; 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; public class ItemSigilWhirlwind extends ItemSigilToggleable { public ItemSigilWhirlwind() { super("whirlwind", 250); setRegistryName(Constants.BloodMagicItem.SIGIL_WHIRLWIND.getRegName()); } @Override public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected) { player.addPotionEffect(new PotionEffect(ModPotions.whirlwind.id, 2, 0, true, false)); } }