}
}
cause = new PlayerPlacementCause(player, (Material) toPlace, placedBlock);
// Perform actual placement
toPlace.onPlacement(placedBlock, placedData, placedAgainst, message.getFace(), placedIsClicked, cause);
// Play sound
BlockMaterial material = placedBlock.getMaterial();
SoundEffect sound;
if (material instanceof VanillaBlockMaterial) {