Java Code Examples for net.minecraft.entity.player.EntityPlayer.curePotionEffects()

The following are Jave code examples for showing how to use curePotionEffects() of the net.minecraft.entity.player.EntityPlayer class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Industrial-Foregoing   File:   View Source Code Vote up 4 votes
public void onDrink(World world, BlockPos pos, FluidStack stack, EntityPlayer player, boolean fromFluidContainer) {
    player.curePotionEffects(new ItemStack(Items.MILK_BUCKET));