Check out example codes for "get material of block bukkit". It will help you in understanding the concepts better.

Code Example 1

Material blockMaterial = Block.getType();

Learn ReactJs, React Native from akashmittal.com