# Pastebin joJRgotp override def getExtendedState(state: IBlockState, world: IBlockAccess, pos: BlockPos): IBlockState = { state match { case extended: IExtendedBlockState => val rot = this.getRotation(state, world, pos) extended.withProperty(OBJModel.OBJProperty.instance, new OBJState(Lists.newArrayList(OBJModel.Group.ALL), true, new TRSRTransformation( null, { val quat = new Quat4f() quat.mul({ val q = new Quat4f() q.set(new AxisAngle4f(1, 0, 0, rot.x_f())) q }) quat.mul({ val q = new Quat4f() q.set(new AxisAngle4f(0, 1, 0, rot.y_f())) q }) quat.mul({ val q = new Quat4f() q.set(new AxisAngle4f(0, 0, 1, rot.z_f())) q }) quat }, null, null))) case _ => state } }