BloodMagic/src/main/java/WayofTime/bloodmagic/item/sigil/ItemSigilWhirlwind.java

26 lines
758 B
Java
Raw Normal View History

2015-12-28 19:09:51 -05:00
package WayofTime.bloodmagic.item.sigil;
import WayofTime.bloodmagic.api.util.helper.PlayerHelper;
import WayofTime.bloodmagic.registry.ModPotions;
2015-12-28 19:09:51 -05:00
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 ItemSigilToggleableBase
{
public ItemSigilWhirlwind()
{
2015-12-28 19:09:51 -05:00
super("whirlwind", 250);
}
@Override
public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected)
{
if (PlayerHelper.isFakePlayer(player))
return;
2016-03-18 15:38:26 -04:00
player.addPotionEffect(new PotionEffect(ModPotions.whirlwind, 2, 0, true, false));
2015-12-28 19:09:51 -05:00
}
}