Package net.minecraft.item
Class FoodItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.FoodItem
- Direct Known Subclasses:
MushroomStewItem,StackableFoodItem
- Mappings:
Namespace Name intermediary net/minecraft/class_554glue class_617server pxclient ywnamed net/minecraft/item/FoodItem
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate booleanThis determines if a food is edible by wolvesFields inherited from class net.minecraft.item.Item
APPLE, ARROW, BED, BOAT, BONE, BOOK, BOW, BOWL, BREAD, BRICK, BUCKET, CAKE, CHAIN_BOOTS, CHAIN_CHESTPLATE, CHAIN_HELMET, CHAIN_LEGGINGS, CHEST_MINECART, CLAY, CLOCK, COAL, COMPASS, COOKED_FISH, COOKED_PORKCHOP, COOKIE, DIAMOND, DIAMOND_AXE, DIAMOND_BOOTS, DIAMOND_CHESTPLATE, DIAMOND_HELMET, DIAMOND_HOE, DIAMOND_LEGGINGS, DIAMOND_PICKAXE, DIAMOND_SHOVEL, DIAMOND_SWORD, DYE, EGG, FEATHER, FISHING_ROD, FLINT, FLINT_AND_STEEL, FURNACE_MINECART, GLOWSTONE_DUST, GOLD_INGOT, GOLDEN_APPLE, GOLDEN_AXE, GOLDEN_BOOTS, GOLDEN_CHESTPLATE, GOLDEN_HELMET, GOLDEN_HOE, GOLDEN_LEGGINGS, GOLDEN_PICKAXE, GOLDEN_SHOVEL, GOLDEN_SWORD, GUNPOWDER, handheld, hasSubtypes, id, IRON_AXE, IRON_BOOTS, IRON_CHESTPLATE, IRON_DOOR, IRON_HELMET, IRON_HOE, IRON_INGOT, IRON_LEGGINGS, IRON_PICKAXE, IRON_SHOVEL, IRON_SWORD, ITEMS, LAVA_BUCKET, LEATHER, LEATHER_BOOTS, LEATHER_CHESTPLATE, LEATHER_HELMET, LEATHER_LEGGINGS, MAP, maxCount, MILK_BUCKET, MINECART, MUSHROOM_STEW, PAINTING, PAPER, random, RAW_FISH, RAW_PORKCHOP, RECORD_CAT, RECORD_THIRTEEN, REDSTONE, REPEATER, SADDLE, SEEDS, SHEARS, SIGN, SLIMEBALL, SNOWBALL, STICK, STONE_AXE, STONE_HOE, STONE_PICKAXE, STONE_SHOVEL, STONE_SWORD, STRING, SUGAR, SUGAR_CANE, textureId, WATER_BUCKET, WHEAT, WOODEN_AXE, WOODEN_DOOR, WOODEN_HOE, WOODEN_PICKAXE, WOODEN_SHOVEL, WOODEN_SWORD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisMeat()Used to determine if a food is edible by wolvesuse(ItemStack stack, World world, PlayerEntity user) Methods inherited from class net.minecraft.item.Item
getAttackDamage, getColorMultiplier, getCraftingReturnItem, getMaxCount, getMaxDamage, getMiningSpeedMultiplier, getPlacementMetadata, getTextureId, getTextureId, getTranslatedName, getTranslationKey, getTranslationKey, hasCraftingReturnItem, hasSubtypes, inventoryTick, isDamageable, isHandheld, isHandheldRod, isNetworkSynced, isSuitableFor, onCraft, postHit, postMine, setCraftingReturnItem, setHandheld, setHasSubtypes, setMaxCount, setMaxDamage, setTextureId, setTexturePosition, setTranslationKey, useOnBlock, useOnEntity
-
Field Details
-
healthRestored
private int healthRestored- Mappings:
Namespace Name Mixin selector intermediary field_2325Lnet/minecraft/class_554;field_2325:Iglue field_2517Lclass_617;field_2517:Iserver aLpx;a:Iclient aLyw;a:Inamed healthRestoredLnet/minecraft/item/FoodItem;healthRestored:I
-
meat
private boolean meatThis determines if a food is edible by wolves- Mappings:
Namespace Name Mixin selector intermediary field_2326Lnet/minecraft/class_554;field_2326:Zglue field_2518Lclass_617;field_2518:Zserver bkLpx;bk:Zclient bkLyw;bk:Znamed meatLnet/minecraft/item/FoodItem;meat:Z
-
-
Constructor Details
-
FoodItem
public FoodItem(int id, int healthRestored, boolean meat) - Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_554;<init>(IIZ)Vglue <init>Lclass_617;<init>(IIZ)Vserver <init>Lpx;<init>(IIZ)Vclient <init>Lyw;<init>(IIZ)Vnamed <init>Lnet/minecraft/item/FoodItem;<init>(IIZ)V
-
-
Method Details
-
use
- Overrides:
usein classItem- Mappings:
Namespace Name Mixin selector intermediary method_451Lnet/minecraft/class_124;method_451(Lnet/minecraft/class_31;Lnet/minecraft/class_18;Lnet/minecraft/class_54;)Lnet/minecraft/class_31;glue method_68Lclass_166;method_68(Lclass_224;Lclass_129;Lclass_172;)Lclass_224;server aLej;a(Lfy;Ldj;Lem;)Lfy;client aLgm;a(Liz;Lfd;Lgs;)Liz;named useLnet/minecraft/item/Item;use(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/item/ItemStack;
-
getHealthRestored
public int getHealthRestored()- Mappings:
Namespace Name Mixin selector intermediary method_1835Lnet/minecraft/class_554;method_1835()Iglue method_2075Lclass_617;method_2075()Iserver kLpx;k()Iclient lLyw;l()Inamed getHealthRestoredLnet/minecraft/item/FoodItem;getHealthRestored()I
-
isMeat
public boolean isMeat()Used to determine if a food is edible by wolves- Mappings:
Namespace Name Mixin selector intermediary method_1836Lnet/minecraft/class_554;method_1836()Zglue method_2076Lclass_617;method_2076()Zserver lLpx;l()Zclient mLyw;m()Znamed isMeatLnet/minecraft/item/FoodItem;isMeat()Z
-