Package net.minecraft.item.food
Class FoodBase
java.lang.Object
net.minecraft.item.ItemBase
net.minecraft.item.food.FoodBase
- Direct Known Subclasses:
Cookie,MushroomStew
- Mappings:
Namespace Name intermediary net/minecraft/class_554glue class_617server pxclient ywnamed net/minecraft/item/food/FoodBase
-
Field Summary
FieldsFields inherited from class net.minecraft.item.ItemBase
apple, arrow, bed, boat, bone, book, bow, bowl, bread, brick, bucket, byId, cake, chainBoots, chainChestplate, chainHelmet, chainLeggings, clay, clock, coal, compass, cookedFish, cookedPorkchop, cookie, diamond, diamondAxe, diamondBoots, diamondChestplate, diamondHelmet, diamondHoe, diamondLeggings, diamondPickaxe, diamondShovel, diamondSword, dyePowder, egg, feather, fishingRod, flint, flintAndSteel, glowstoneDust, goldAxe, goldBoots, goldChestplate, goldenApple, goldHelmet, goldHoe, goldIngot, goldLeggings, goldPickaxe, goldShovel, goldSword, gunpowder, hasSubItems, id, ironAxe, ironBoots, ironChestplate, ironDoor, ironHelmet, ironHoe, ironIngot, ironLeggings, ironPickaxe, ironShovel, ironSword, isRendered3d, lavaBucket, leather, leatherBoots, leatherChestplate, leatherHelmet, leatherLeggings, map, maxStackSize, milk, minecart, minecartChest, minecartFurnace, mushroomStew, painting, paper, rand, rawFish, rawPorkchop, record13, recordCat, redstoneDust, redstoneRepeater, saddle, seeds, shears, sign, slimeball, snowball, stick, stoneAxe, stoneHoe, stonePickaxe, stoneShovel, stoneSword, string, sugar, sugarCanes, texturePosition, waterBucket, wheat, woodAxe, woodDoor, woodHoe, woodPickaxe, woodShovel, woodSword -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintuse(ItemInstance item, Level level, PlayerBase player) Methods inherited from class net.minecraft.item.ItemBase
getAttack, getColourMultiplier, getContainerItemType, getDurability, getMaxStackSize, getMetaData, getStrengthOnBlock, getTexturePosition, getTexturePosition, getTranslatedName, getTranslationKey, getTranslationKey, hasContainerItemType, hasDurability, interactWithEntity, inventoryTick, isEffectiveOn, isMap, isRendered3d, onCreation, postHit, postMine, setContainerItem, setDurability, setHasSubItems, setMaxStackSize, setRendered3d, setTexturePosition, setTexturePosition, setTranslationKey, shouldSpinWhenRendering, useOnTile, usesMeta
-
Field Details
-
healAmount
private int healAmount- 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 healAmountLnet/minecraft/item/food/FoodBase;healAmount:I
-
isWolfFood
private boolean isWolfFood- 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 isWolfFoodLnet/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)Vglue <init>Lclass_617;<init>(IIZ)Vserver <init>Lpx;<init>(IIZ)Vclient <init>Lyw;<init>(IIZ)Vnamed <init>Lnet/minecraft/item/food/FoodBase;<init>(IIZ)V
-
-
Method Details
-
use
- Overrides:
usein classItemBase- 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/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_1835Lnet/minecraft/class_554;method_1835()Iglue method_2075Lclass_617;method_2075()Iserver kLpx;k()Iclient lLyw;l()Inamed getHealAmountLnet/minecraft/item/food/FoodBase;getHealAmount()I
-
canWolvesEat
public boolean canWolvesEat()- 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 canWolvesEatLnet/minecraft/item/food/FoodBase;canWolvesEat()Z
-