2015-12-28 19:09:51 -05:00
|
|
|
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
|
2018-02-15 18:49:01 -08:00
|
|
|
import WayofTime.bloodmagic.util.helper.PlayerHelper;
|
2017-08-15 20:21:54 -07:00
|
|
|
import WayofTime.bloodmagic.core.RegistrarBloodMagic;
|
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;
|
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public class ItemSigilWhirlwind extends ItemSigilToggleableBase {
|
|
|
|
public ItemSigilWhirlwind() {
|
2015-12-28 19:09:51 -05:00
|
|
|
super("whirlwind", 250);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-08-15 21:30:48 -07:00
|
|
|
public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected) {
|
2016-11-11 16:57:50 -08:00
|
|
|
if (PlayerHelper.isFakePlayer(player))
|
|
|
|
return;
|
|
|
|
|
2017-08-15 20:21:54 -07:00
|
|
|
player.addPotionEffect(new PotionEffect(RegistrarBloodMagic.WHIRLWIND, 2, 0, true, false));
|
2015-12-28 19:09:51 -05:00
|
|
|
}
|
|
|
|
}
|