title: How to make a drinkable item for minecraft 1.15.2
body: <p>So I want to make a drinkable item in minecraft, but I keep running into an error. The thing is is that I am trying to make a class that will override the eating function and replace it with drinking. I don't understand, but it seems like <code>EnumAction</code> doesn't exist anymore. Are there other alternative ways to override the eating function to create this item (or any errors in my code)?</p>
  
  <pre class="lang-java prettyprint-override"><code>package com.saucygames05.morecandymod.objects.items;
  
  import net.minecraft.item.Item;
  
  public class DrinkItem extends Item {
      public DrinkItem() {
          super(null);
          this.setRegistryName("apple_juice");
          }
      @Override
          public EnumAction getItemUseAction () {
              return EnumAction.DRINK;
          }
  }
  </code></pre>
  
  <p>I need at least a few answers before I go insane trying to figure it out for another week lmao.</p>