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

Method onBlockPlaced

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

Called by ItemBlocks just before a block is actually set in the world, to allow for adjustments to the IBlockstate

(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)

Source from the content-addressed store, hash-verified

889 * IBlockstate
890 */
891 public IBlockState onBlockPlaced(World worldIn, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer)
892 {
893 return this.getStateFromMeta(meta);
894 }
895
896 public void onBlockClicked(World worldIn, BlockPos pos, EntityPlayer playerIn)
897 {

Callers 3

onItemUseMethod · 0.45
onItemUseMethod · 0.45
onItemUseMethod · 0.45

Calls 1

getStateFromMetaMethod · 0.95

Tested by

no test coverage detected