Package net.minecraft.item
Class FishItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.FoodItem
net.minecraft.item.FishItem
- Mappings:
Namespace Name official aigintermediary net/minecraft/class_1732named net/minecraft/item/FishItem
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
FieldsFields inherited from class net.minecraft.item.FoodItem
eatingTimeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendToItemGroup(ItemGroup group, DefaultedList<ItemStack> stacks) protected voideat(ItemStack stack, World world, PlayerEntity player) intgetHungerPoints(ItemStack stack) floatgetSaturation(ItemStack stack) getTranslationKey(ItemStack stack) Methods inherited from class net.minecraft.item.FoodItem
alwaysEdible, getMaxUseTime, getUseAction, isCokkable, method_11371, method_13649, method_3367Methods inherited from class net.minecraft.item.Item
addProperty, appendTooltips, byRawId, canAddTo, canRepair, fromBlock, getBlockBreakingSpeed, getDefaultStack, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMeta, getProperty, getRarity, getRawId, getRecipeRemainder, getTranslationKey, hasEnchantmentGlint, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3356, method_3359, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient, use
-
Field Details
-
cooked
private final boolean cooked- Mappings:
Namespace Name Mixin selector official bLaig;b:Zintermediary field_6957Lnet/minecraft/class_1732;field_6957:Znamed cookedLnet/minecraft/item/FishItem;cooked:Z
-
-
Constructor Details
-
FishItem
public FishItem(boolean cooked) - Mappings:
Namespace Name Mixin selector official <init>Laig;<init>(Z)Vintermediary <init>Lnet/minecraft/class_1732;<init>(Z)Vnamed <init>Lnet/minecraft/item/FishItem;<init>(Z)V
-
-
Method Details
-
getHungerPoints
- Overrides:
getHungerPointsin classFoodItem- Mappings:
Namespace Name Mixin selector official hLaij;h(Laip;)Iintermediary method_6360Lnet/minecraft/class_1065;method_6360(Lnet/minecraft/class_1071;)Inamed getHungerPointsLnet/minecraft/item/FoodItem;getHungerPoints(Lnet/minecraft/item/ItemStack;)I
-
getSaturation
- Overrides:
getSaturationin classFoodItem- Mappings:
Namespace Name Mixin selector official iLaij;i(Laip;)Fintermediary method_6361Lnet/minecraft/class_1065;method_6361(Lnet/minecraft/class_1071;)Fnamed getSaturationLnet/minecraft/item/FoodItem;getSaturation(Lnet/minecraft/item/ItemStack;)F
-
eat
- Overrides:
eatin classFoodItem- Mappings:
Namespace Name Mixin selector official aLaij;a(Laip;Lamu;Laed;)Vintermediary method_3336Lnet/minecraft/class_1065;method_3336(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Vnamed eatLnet/minecraft/item/FoodItem;eat(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
-
appendToItemGroup
- Overrides:
appendToItemGroupin classItem- Mappings:
Namespace Name Mixin selector official aLain;a(Lahp;Lfi;)Vintermediary method_14233Lnet/minecraft/class_1069;method_14233(Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed appendToItemGroupLnet/minecraft/item/Item;appendToItemGroup(Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-
getTranslationKey
- Overrides:
getTranslationKeyin classItem- Mappings:
Namespace Name Mixin selector official aLain;a(Laip;)Ljava/lang/String;intermediary method_3371Lnet/minecraft/class_1069;method_3371(Lnet/minecraft/class_1071;)Ljava/lang/String;named getTranslationKeyLnet/minecraft/item/Item;getTranslationKey(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-