// Perform actual placement
toPlace.onPlacement(placedBlock, placedData, placedAgainst, message.getFace(), placedIsClicked, cause);
// Play sound
BlockMaterial material = placedBlock.getMaterial();
SoundEffect sound;
if (material instanceof VanillaBlockMaterial) {
sound = ((VanillaBlockMaterial) material).getStepSound();
} else {
sound = SoundEffects.STEP_STONE;
}
sound.playGlobal(placedBlock.getPosition(), 0.8f, 0.8f);
// Remove block from inventory
if (!PlayerUtil.isCostSuppressed(player) && holdingMat == (currentSlot.get() != null ? currentSlot.get().getMaterial() : null)) {
currentSlot.addAmount(-1);
}