get material of block bukkit

Java
Material blockMaterial = Block.getType();
Source

Also in Java: