ItemSoup .java

net.minecraft.item.ItemSoup (class, 25 lines): extends ItemFood. members: onItemUseFinish. imports: Items.

net.minecraft.itemclass25 linescommonextends ItemFood690 B

API Surface (1)

ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ItemSoup.java25 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.item;
2
3
import net.minecraft.entity.player.EntityPlayer;
4
import net.minecraft.init.Items;
5
import net.minecraft.world.World;
6
7
public class ItemSoup extends ItemFood
8
{
9
    public ItemSoup(int healAmount)
10
    {
11
        super(healAmount, false);
12
        this.setMaxStackSize(1);
13
    }
14
15
    /**
16
     * Called when the player finishes using this Item (E.g. finishes eating.). Not called when the player stops using
17
     * the Item before the action is complete.
18
     */
19
    public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)
20
    {
21
        super.onItemUseFinish(stack, worldIn, playerIn);
22
        return new ItemStack(Items.bowl);
23
    }
24
}
25

Deobfuscated MCP 1.8.9 source of ItemSoup from Marcelektro/MavenMCP-1.8.9 (net/minecraft/item/ItemSoup.java), stored verbatim.