Class FishItem


public class FishItem extends FoodItem
Mappings:
Namespace Name
official adh
intermediary net/minecraft/class_1732
named net/minecraft/item/FishItem
  • Field Details

    • cooked

      private final boolean cooked
      Mappings:
      Namespace Name Mixin selector
      official b Ladh;b:Z
      intermediary field_6957 Lnet/minecraft/class_1732;field_6957:Z
      named cooked Lnet/minecraft/item/FishItem;cooked:Z
  • Constructor Details

    • FishItem

      public FishItem(boolean cooked)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ladh;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_1732;<init>(Z)V
      named <init> Lnet/minecraft/item/FishItem;<init>(Z)V
  • Method Details

    • getHungerPoints

      public int getHungerPoints(ItemStack stack)
      Overrides:
      getHungerPoints in class FoodItem
      Mappings:
      Namespace Name Mixin selector
      official h Ladk;h(Ladq;)I
      intermediary method_6360 Lnet/minecraft/class_1065;method_6360(Lnet/minecraft/class_1071;)I
      named getHungerPoints Lnet/minecraft/item/FoodItem;getHungerPoints(Lnet/minecraft/item/ItemStack;)I
    • getSaturation

      public float getSaturation(ItemStack stack)
      Overrides:
      getSaturation in class FoodItem
      Mappings:
      Namespace Name Mixin selector
      official i Ladk;i(Ladq;)F
      intermediary method_6361 Lnet/minecraft/class_1065;method_6361(Lnet/minecraft/class_1071;)F
      named getSaturation Lnet/minecraft/item/FoodItem;getSaturation(Lnet/minecraft/item/ItemStack;)F
    • eat

      protected void eat(ItemStack stack, World world, PlayerEntity player)
      Overrides:
      eat in class FoodItem
      Mappings:
      Namespace Name Mixin selector
      official a Ladk;a(Ladq;Laht;Lzj;)V
      intermediary method_3336 Lnet/minecraft/class_1065;method_3336(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)V
      named eat Lnet/minecraft/item/FoodItem;eat(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
    • appendItemStacks

      @Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List<ItemStack> list)
      Registers an item's sub items
      Overrides:
      appendItemStacks in class Item
      Parameters:
      item - The Item instance
      group - The ItemGroup
      list - The list of sub items
      Mappings:
      Namespace Name Mixin selector
      official a Lado;a(Lado;Lacq;Ljava/util/List;)V
      intermediary method_3345 Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
    • getTranslationKey

      public String getTranslationKey(ItemStack stack)
      Overrides:
      getTranslationKey in class Item
      Mappings:
      Namespace Name Mixin selector
      official f_ Lado;f_(Ladq;)Ljava/lang/String;
      intermediary method_3371 Lnet/minecraft/class_1069;method_3371(Lnet/minecraft/class_1071;)Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;