Able to Cast Block to Depreciated Diode but throws Block Cannot be cast to Repeater error if using Repeater.
Function Header: RepeaterHandler(PlayerInteractEvent e)
CODE WORKS:
Block RB = e.getClickedBlock();
if(RB.getType().equals(Material.REPEATER))
Diode repeater = (Diode)RB.getState().getData();
CODE FAILS:
Block RB = e.getClickedBlock();
if(RB.getType().equals(Material.REPEATER))
Repeater repeater = (Repeater)RB.getState().getData();