
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.
22 lines
748 B
Java
22 lines
748 B
Java
package WayofTime.bloodmagic.item.sigil;
|
|
|
|
import WayofTime.bloodmagic.util.helper.PlayerHelper;
|
|
import WayofTime.bloodmagic.core.RegistrarBloodMagic;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.potion.PotionEffect;
|
|
import net.minecraft.world.World;
|
|
|
|
public class ItemSigilBounce extends ItemSigilToggleableBase {
|
|
public ItemSigilBounce() {
|
|
super("bounce", 100);
|
|
}
|
|
|
|
@Override
|
|
public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected) {
|
|
if (PlayerHelper.isFakePlayer(player))
|
|
return;
|
|
|
|
player.addPotionEffect(new PotionEffect(RegistrarBloodMagic.BOUNCE, 2, 0, true, false));
|
|
}
|
|
}
|