public void executeLeftClickAction() { RayBlockIntersection.Intersection selectedBlock = _player.getSelectedBlock(); if (ItemBlueprint.class.isInstance(_player.getActiveItem()) && selectedBlock != null) { ItemBlueprint bpItem = (ItemBlueprint) _player.getActiveItem(); if (bpItem.getBlueprint() == null) { addBlock(selectedBlock.getBlockPosition()); } else { bpItem .getBlueprint() .build(_player.getParent().getWorldProvider(), selectedBlock.getBlockPosition()); } } }