MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getItem

Method getItem

src/main/java/net/minecraft/block/Block.java:1147–1150  ·  view source on GitHub ↗

Used by pick block on the client to get a block's item form, if it exists.

(World worldIn, BlockPos pos)

Source from the content-addressed store, hash-verified

1145 * Used by pick block on the client to get a block's item form, if it exists.
1146 */
1147 public Item getItem(World worldIn, BlockPos pos)
1148 {
1149 return Item.getItemFromBlock(this);
1150 }
1151
1152 public int getDamageValue(World worldIn, BlockPos pos)
1153 {

Callers 15

middleClickMouseMethod · 0.95
getItemModelMethod · 0.45
renderItemMethod · 0.45
updateEquippedItemMethod · 0.45
renderByItemMethod · 0.45
doRenderMethod · 0.45
renderItemMethod · 0.45
renderQuadsMethod · 0.45
preTransformMethod · 0.45

Calls 1

getItemFromBlockMethod · 0.95

Tested by

no test coverage detected