Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.heating.mod.food;
- import net.minecraft.item.EnumAction;
- import net.minecraft.item.ItemFood;
- import net.minecraft.item.ItemStack;
- public class Alcohol extends ItemFood {
- public Alcohol(int i, float f, boolean b) {
- super(i, b);
- this.setPotionEffect(9, 30, 0, 1f);
- this.setPotionEffect(5, 30, 0, 1f);
- }
- public EnumAction getItemUseAction(ItemStack par1ItemStack)
- {
- return EnumAction.drink;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement