ItemPiston .java

net.minecraft.item.ItemPiston (class, 21 lines): extends ItemBlock. members: getMetadata. imports: Block.

net.minecraft.itemclass21 linescommonextends ItemBlock436 B

API Surface (1)

int getMetadata(int damage)

Code Graph: Dependencies (2)

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

Full Source

ItemPiston.java21 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.item;
2
3
import net.minecraft.block.Block;
4
5
public class ItemPiston extends ItemBlock
6
{
7
    public ItemPiston(Block block)
8
    {
9
        super(block);
10
    }
11
12
    /**
13
     * Converts the given ItemStack damage value into a metadata value to be placed in the world when this Item is
14
     * placed as a Block (mostly used with ItemBlocks).
15
     */
16
    public int getMetadata(int damage)
17
    {
18
        return 7;
19
    }
20
}
21

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