/** * Called when a block is placed by a player. Sets data of the tile entity, like custom container * title, enchantments or similar. */ public void onBlockPlaced(EntityLivingBase player, ItemStack stack) { if (stack.hasDisplayName()) setCustomTitle(stack.getDisplayName()); }