
Do not consider anything outside of the true API safe to use. And even then, I'm changing things. Just wait. Please I beg you.
21 lines
694 B
Java
21 lines
694 B
Java
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
import WayofTime.bloodmagic.util.helper.PlayerHelper;
|
|
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) {
|
|
if (PlayerHelper.isFakePlayer(player))
|
|
return;
|
|
|
|
EnchantmentFrostWalker.freezeNearby(player, world, player.getPosition(), 1);
|
|
}
|
|
}
|