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

Method createStackedBlock

src/main/java/net/minecraft/block/Block.java:1035–1046  ·  view source on GitHub ↗
(IBlockState state)

Source from the content-addressed store, hash-verified

1033 }
1034
1035 protected ItemStack createStackedBlock(IBlockState state)
1036 {
1037 int i = 0;
1038 Item item = Item.getItemFromBlock(this);
1039
1040 if (item != null && item.getHasSubtypes())
1041 {
1042 i = this.getMetaFromState(state);
1043 }
1044
1045 return new ItemStack(item, 1, i);
1046 }
1047
1048 /**
1049 * Get the quantity dropped based on the given fortune level

Callers 2

harvestBlockMethod · 0.95
harvestBlockMethod · 0.45

Calls 3

getItemFromBlockMethod · 0.95
getHasSubtypesMethod · 0.95
getMetaFromStateMethod · 0.95

Tested by

no test coverage detected