MaterialData data = state.getData();
if (!(data instanceof Banner)) {
warnMaterialData(Banner.class, data);
return;
}
Banner banner = (Banner) data;
if (banner.isWallBanner()) {
banner.setFacingDirection(face);
} else {
banner.setFacingDirection(player.getFacing().getOppositeFace());
}
}