public void placeBlock(GlowPlayer player, GlowBlockState state, BlockFace face, ItemStack holding, Vector clickedLoc) {
super.placeBlock(player, state, face, holding, clickedLoc);
MaterialData materialData = state.getData();
if (materialData instanceof Gate) {
Gate gate = (Gate) materialData;
float yaw = player.getLocation().getYaw();
gate.setFacingDirection(blockFaceFromYaw(yaw));
state.update(true);
} else {
warnMaterialData(Gate.class, materialData);
}
}