2016-10-14 20:51:21 -04:00
|
|
|
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
|
2016-11-11 16:57:50 -08:00
|
|
|
import WayofTime.bloodmagic.api.util.helper.PlayerHelper;
|
2016-10-14 20:51:21 -04:00
|
|
|
import net.minecraft.enchantment.EnchantmentFrostWalker;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
public class ItemSigilFrost extends ItemSigilToggleableBase
|
|
|
|
{
|
|
|
|
public ItemSigilFrost()
|
|
|
|
{
|
|
|
|
super("frost", 100);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
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;
|
|
|
|
|
2016-10-14 20:51:21 -04:00
|
|
|
EnchantmentFrostWalker.freezeNearby(player, world, player.getPosition(), 1);
|
|
|
|
}
|
|
|
|
}
|