How to check if block instance of diamond

Discussion in 'Spigot Plugin Help' started by Known, May 31, 2017.

  1. how do i check if a block is an instance of diamond ore?
     
    • Funny Funny x 1
  2. if(Block#getType() == Material.DIAMOND_ORE){