2016-10-14 20:51:21 -04:00
|
|
|
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
|
2018-02-15 18:49:01 -08:00
|
|
|
import WayofTime.bloodmagic.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;
|
|
|
|
|
2017-08-15 21:30:48 -07:00
|
|
|
public class ItemSigilFrost extends ItemSigilToggleableBase {
|
|
|
|
public ItemSigilFrost() {
|
2016-10-14 20:51:21 -04:00
|
|
|
super("frost", 100);
|
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
|
|
|
|
2016-10-14 20:51:21 -04:00
|
|
|
EnchantmentFrostWalker.freezeNearby(player, world, player.getPosition(), 1);
|
|
|
|
}
|
|
|
|
}
|