Advertisement
Guest User

Alcohol

a guest
Oct 10th, 2014
406
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package com.heating.mod.food;
  2.  
  3. import net.minecraft.item.EnumAction;
  4. import net.minecraft.item.ItemFood;
  5. import net.minecraft.item.ItemStack;
  6.  
  7. public class Alcohol extends ItemFood {
  8.  
  9. public Alcohol(int i, float f, boolean b) {
  10. super(i, b);
  11.  
  12. this.setPotionEffect(9, 30, 0, 1f);
  13. this.setPotionEffect(5, 30, 0, 1f);
  14. }
  15.  
  16. public EnumAction getItemUseAction(ItemStack par1ItemStack)
  17. {
  18. return EnumAction.drink;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement