use of org.bukkit.material.RedstoneTorch in project Glowstone by GlowstoneMC.
the class BlockRedstoneTorch method placeBlock.
@Override
public void placeBlock(GlowPlayer player, GlowBlockState state, BlockFace face, ItemStack holding, Vector clickedLoc) {
super.placeBlock(player, state, face, holding, clickedLoc);
MaterialData data = state.getData();
if (data instanceof RedstoneTorch) {
((RedstoneTorch) data).setFacingDirection(face);
} else {
warnMaterialData(RedstoneTorch.class, data);
}
}
Aggregations