Using `IBlockState.withMirror` and `TileEntity.mirror`, respectively.
Using
IBlockState.withMirrorandTileEntity.mirror, respectively.