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 alhintermediary net/minecraft/class_1732named net/minecraft/item/FishItem
-
Field Summary
FieldsFields inherited from class net.minecraft.item.FoodItem
eatingTimeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendItemStacks(Item item, ItemGroup group, List list) Registers an item's sub itemsprotected voideat(ItemStack stack, World world, PlayerEntity player) intgetHungerPoints(ItemStack stack) floatgetSaturation(ItemStack stack) getStatusEffectString(ItemStack stack) Returns the status effect string for the current item.getTranslationKey(ItemStack stack) Methods inherited from class net.minecraft.item.FoodItem
alwaysEdible, getMaxUseTime, getUseAction, isCokkable, onFinishUse, onStartUse, setStatusEffectMethods inherited from class net.minecraft.item.Item
appendTooltip, byRawId, canRepair, canUseOnEntity, fromBlock, getAttributeModifierMap, getDisplayColor, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMeta, getMiningSpeedMultiplier, getRarity, getRawId, getRecipeRemainder, getTranslationKey, hasEnchantmentGlint, hasStatusEffectString, hasSubTypes, inventoryTick, isDamageable, isEffectiveOn, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, onBlockBroken, onCraft, onEntityHit, onHit, onUseStopped, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setStatusEffectString, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient, use
-
Field Details
-
cooked
private final boolean cooked- Mappings:
Namespace Name Mixin selector official bLalh;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>Lalh;<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 hLall;h(Lamj;)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 iLall;i(Lamj;)Fintermediary method_6361Lnet/minecraft/class_1065;method_6361(Lnet/minecraft/class_1071;)Fnamed getSaturationLnet/minecraft/item/FoodItem;getSaturation(Lnet/minecraft/item/ItemStack;)F
-
getStatusEffectString
Returns the status effect string for the current item.- Overrides:
getStatusEffectStringin classItem- Returns:
- The status effect string
- Mappings:
Namespace Name Mixin selector official jLalq;j(Lamj;)Ljava/lang/String;intermediary method_6367Lnet/minecraft/class_1069;method_6367(Lnet/minecraft/class_1071;)Ljava/lang/String;named getStatusEffectStringLnet/minecraft/item/Item;getStatusEffectString(Lnet/minecraft/item/ItemStack;)Ljava/lang/String;
-
eat
- Overrides:
eatin classFoodItem- Mappings:
Namespace Name Mixin selector official cLall;c(Lamj;Laqu;Lahd;)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
-
appendItemStacks
Registers an item's sub items- Overrides:
appendItemStacksin classItem- Parameters:
item- The Item instancegroup- The ItemGrouplist- The list of sub items- Mappings:
Namespace Name Mixin selector official aLalq;a(Lalq;Lakf;Ljava/util/List;)Vintermediary method_3345Lnet/minecraft/class_1069;method_3345(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)Vnamed appendItemStacksLnet/minecraft/item/Item;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
-
getTranslationKey
- Overrides:
getTranslationKeyin classItem- Mappings:
Namespace Name Mixin selector official e_Lalq;e_(Lamj;)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;
-