Class FoodBase

java.lang.Object
net.minecraft.item.ItemBase
net.minecraft.item.food.FoodBase
Direct Known Subclasses:
Cookie, MushroomStew

public class FoodBase extends ItemBase
Mappings:
Namespace Name
intermediary net/minecraft/class_554
glue class_617
server px
client yw
named net/minecraft/item/food/FoodBase
  • Field Details

    • healAmount

      private int healAmount
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2325 Lnet/minecraft/class_554;field_2325:I
      glue field_2517 Lclass_617;field_2517:I
      server a Lpx;a:I
      client a Lyw;a:I
      named healAmount Lnet/minecraft/item/food/FoodBase;healAmount:I
    • isWolfFood

      private boolean isWolfFood
      Mappings:
      Namespace Name Mixin selector
      intermediary field_2326 Lnet/minecraft/class_554;field_2326:Z
      glue field_2518 Lclass_617;field_2518:Z
      server bk Lpx;bk:Z
      client bk Lyw;bk:Z
      named isWolfFood Lnet/minecraft/item/food/FoodBase;isWolfFood:Z
  • Constructor Details

    • FoodBase

      public FoodBase(int id, int healAmount, boolean isWolfFood)
      Mappings:
      Namespace Name Mixin selector
      intermediary <init> Lnet/minecraft/class_554;<init>(IIZ)V
      glue <init> Lclass_617;<init>(IIZ)V
      server <init> Lpx;<init>(IIZ)V
      client <init> Lyw;<init>(IIZ)V
      named <init> Lnet/minecraft/item/food/FoodBase;<init>(IIZ)V
  • Method Details

    • use

      public ItemInstance use(ItemInstance item, Level level, PlayerBase player)
      Overrides:
      use in class ItemBase
      Mappings:
      Namespace Name Mixin selector
      intermediary method_451 Lnet/minecraft/class_124;method_451(Lnet/minecraft/class_31;Lnet/minecraft/class_18;Lnet/minecraft/class_54;)Lnet/minecraft/class_31;
      glue method_68 Lclass_166;method_68(Lclass_224;Lclass_129;Lclass_172;)Lclass_224;
      server a Lej;a(Lfy;Ldj;Lem;)Lfy;
      client a Lgm;a(Liz;Lfd;Lgs;)Liz;
      named use Lnet/minecraft/item/ItemBase;use(Lnet/minecraft/item/ItemInstance;Lnet/minecraft/level/Level;Lnet/minecraft/entity/player/PlayerBase;)Lnet/minecraft/item/ItemInstance;
    • getHealAmount

      public int getHealAmount()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1835 Lnet/minecraft/class_554;method_1835()I
      glue method_2075 Lclass_617;method_2075()I
      server k Lpx;k()I
      client l Lyw;l()I
      named getHealAmount Lnet/minecraft/item/food/FoodBase;getHealAmount()I
    • canWolvesEat

      public boolean canWolvesEat()
      Mappings:
      Namespace Name Mixin selector
      intermediary method_1836 Lnet/minecraft/class_554;method_1836()Z
      glue method_2076 Lclass_617;method_2076()Z
      server l Lpx;l()Z
      client m Lyw;m()Z
      named canWolvesEat Lnet/minecraft/item/food/FoodBase;canWolvesEat()Z