@Override public void onValidPlayerWornTick(ItemStack stack, EntityPlayer player) { if(player.isBurning() && ConfigHandler.ringOfOdinFireResist) player.extinguish(); }
@Override protected void beforeFluidWalk(EntityPlayer player) { if (player.isBurning()) { player.extinguish(); player.motionY = 0.5; } }
private void onHitPlayer(RayTraceResult mop, EntityPlayer entityHit) { //not slowness only snow entityHit.extinguish(); entityHit.addPotionEffect(new PotionEffect(PotionEffectRegistry.SNOW, Const.TICKS_PER_SEC * POTIONSECONDS)); }
@Override public void onSigilUpdate(ItemStack stack, World world, EntityPlayer player, int itemSlot, boolean isSelected) { if (PlayerHelper.isFakePlayer(player)) return; player.fallDistance = 0; player.extinguish(); player.addPotionEffect(new PotionEffect(MobEffects.FIRE_RESISTANCE, 2, 1, true, false)); player.addPotionEffect(new PotionEffect(MobEffects.WATER_BREATHING, 2, 0, true, false)); } }
public void onDrunk(EntityPlayer player) { switch (this) { case GREEN_GIANT: player.curePotionEffects(new ItemStack(Items.MILK_BUCKET)); break; case GIVIN_ME_THE_BLUES: player.extinguish(); break; case HOT_HOT_BABY: player.setFire(5); break; case LIQUID_GOLD: player.heal(0.5F); break; case BRYUFS_BREW: player.heal(1.5F); break; default: } } }
player.extinguish(); consume(InvigoratingPendantConfig.fireUsage, itemStack, player);