@@ -464,7 +464,7 @@ void IsometricBlockImages::setBlockImage(uint16_t id, uint16_t data, const Block
464464}
465465
466466void IsometricBlockImages::setBedImage (uint16_t data, uint16_t extra_data, const BlockImage& block) {
467- setBedImage (data, extra_data, buildImage (block.rotate (rotation)));
467+ setBedImage (data, extra_data, buildImage (block.rotate (rotation)));
468468}
469469
470470void IsometricBlockImages::setBlockImage (uint16_t id, uint16_t data, const RGBAImage& block) {
@@ -476,7 +476,7 @@ void IsometricBlockImages::setBlockImage(uint16_t id, uint16_t data, const RGBAI
476476}
477477
478478void IsometricBlockImages::setBedImage (uint16_t data, uint16_t extra_data, const RGBAImage& block) {
479- AbstractBlockImages::setBedImage (data, extra_data, block);
479+ AbstractBlockImages::setBedImage (data, extra_data, block);
480480}
481481
482482uint32_t IsometricBlockImages::darkenLeft (uint32_t pixel) const {
@@ -560,51 +560,47 @@ void IsometricBlockImages::createSmallerBlock(uint16_t id, uint16_t data, const
560560}
561561
562562void IsometricBlockImages::createGlazedTerracotta (uint16_t id, const RGBAImage& texture) {
563- RGBAImage rotated_texture_0 = texture.rotate (ROTATE_0);
564- RGBAImage rotated_texture_90 = texture.rotate (ROTATE_90);
565- RGBAImage rotated_texture_180 = texture.rotate (ROTATE_180);
566- RGBAImage rotated_texture_270 = texture.rotate (ROTATE_270);
567-
568- BlockImage block_0; // south
569- block_0.setFace (FACE_TOP, rotated_texture_270);
570- block_0.setFace (FACE_NORTH, rotated_texture_90);
571- block_0.setFace (FACE_SOUTH, rotated_texture_270);
572- block_0.setFace (FACE_EAST, rotated_texture_180);
573- block_0.setFace (FACE_WEST, rotated_texture_0);
574- setBlockImage (id, 0 , block_0);
575-
576- BlockImage block_1;
577- block_1.setFace (FACE_TOP, rotated_texture_0);
578- block_1.setFace (FACE_NORTH, rotated_texture_0);
579- block_1.setFace (FACE_SOUTH, rotated_texture_180);
580- block_1.setFace (FACE_EAST, rotated_texture_90);
581- block_1.setFace (FACE_WEST, rotated_texture_270);
582- setBlockImage (id, 1 , block_1);
583-
584- BlockImage block_2;
585- block_2.setFace (FACE_TOP, rotated_texture_90);
586- block_2.setFace (FACE_NORTH, rotated_texture_270);
587- block_2.setFace (FACE_SOUTH, rotated_texture_90);
588- block_2.setFace (FACE_EAST, rotated_texture_0);
589- block_2.setFace (FACE_WEST, rotated_texture_180);
590- setBlockImage (id, 2 , block_2);
591-
592- BlockImage block_3;
593- block_3.setFace (FACE_TOP, rotated_texture_180);
594- block_3.setFace (FACE_NORTH, rotated_texture_180);
595- block_3.setFace (FACE_SOUTH, rotated_texture_0);
596- block_3.setFace (FACE_EAST, rotated_texture_270);
597- block_3.setFace (FACE_WEST, rotated_texture_90);
598- setBlockImage (id, 3 , block_3);
599- }
600-
601- void IsometricBlockImages::createRotatedBlock (uint16_t id, uint16_t extra_data, const RGBAImage& texture) {
602- createRotatedBlock (id, extra_data, texture, texture, texture, texture);
563+ RGBAImage rotated_texture_0 = texture.rotate (ROTATE_0);
564+ RGBAImage rotated_texture_90 = texture.rotate (ROTATE_90);
565+ RGBAImage rotated_texture_180 = texture.rotate (ROTATE_180);
566+ RGBAImage rotated_texture_270 = texture.rotate (ROTATE_270);
567+
568+ BlockImage block_0; // south
569+ block_0.setFace (FACE_TOP, rotated_texture_270);
570+ block_0.setFace (FACE_NORTH, rotated_texture_90);
571+ block_0.setFace (FACE_SOUTH, rotated_texture_270);
572+ block_0.setFace (FACE_EAST, rotated_texture_180);
573+ block_0.setFace (FACE_WEST, rotated_texture_0);
574+ setBlockImage (id, 0 , block_0);
575+
576+ BlockImage block_1;
577+ block_1.setFace (FACE_TOP, rotated_texture_0);
578+ block_1.setFace (FACE_NORTH, rotated_texture_0);
579+ block_1.setFace (FACE_SOUTH, rotated_texture_180);
580+ block_1.setFace (FACE_EAST, rotated_texture_90);
581+ block_1.setFace (FACE_WEST, rotated_texture_270);
582+ setBlockImage (id, 1 , block_1);
583+
584+ BlockImage block_2;
585+ block_2.setFace (FACE_TOP, rotated_texture_90);
586+ block_2.setFace (FACE_NORTH, rotated_texture_270);
587+ block_2.setFace (FACE_SOUTH, rotated_texture_90);
588+ block_2.setFace (FACE_EAST, rotated_texture_0);
589+ block_2.setFace (FACE_WEST, rotated_texture_180);
590+ setBlockImage (id, 2 , block_2);
591+
592+ BlockImage block_3;
593+ block_3.setFace (FACE_TOP, rotated_texture_180);
594+ block_3.setFace (FACE_NORTH, rotated_texture_180);
595+ block_3.setFace (FACE_SOUTH, rotated_texture_0);
596+ block_3.setFace (FACE_EAST, rotated_texture_270);
597+ block_3.setFace (FACE_WEST, rotated_texture_90);
598+ setBlockImage (id, 3 , block_3);
603599}
604600
605601void IsometricBlockImages::createRotatedBlock (uint16_t id, uint16_t extra_data,
606- const RGBAImage& front_texture, const RGBAImage& side_texture,
607- const RGBAImage& top_texture) {
602+ const RGBAImage& front_texture, const RGBAImage& side_texture,
603+ const RGBAImage& top_texture) {
608604 createRotatedBlock (id, extra_data, front_texture, side_texture, side_texture,
609605 top_texture);
610606}
@@ -781,30 +777,30 @@ void IsometricBlockImages::createDispenserDropper(uint16_t id, const RGBAImage&
781777}
782778
783779void IsometricBlockImages::createObserver (uint16_t id) { // id 23, 158
784- RGBAImage side = resources.getBlockTextures ().OBSERVER_SIDE ;
785- RGBAImage top = resources.getBlockTextures ().OBSERVER_TOP ;
786- RGBAImage front = resources.getBlockTextures ().OBSERVER_FRONT ;
787- RGBAImage back = resources.getBlockTextures ().OBSERVER_BACK ;
780+ RGBAImage side = resources.getBlockTextures ().OBSERVER_SIDE ;
781+ RGBAImage top = resources.getBlockTextures ().OBSERVER_TOP ;
782+ RGBAImage front = resources.getBlockTextures ().OBSERVER_FRONT ;
783+ RGBAImage back = resources.getBlockTextures ().OBSERVER_BACK ;
788784
789- createRotatedBlock (id, 0 , front, back, side, top.rotate (ROTATE_90));
785+ createRotatedBlock (id, 0 , front, back, side, top.rotate (ROTATE_90));
790786
791- BlockImage up_image;
792- up_image.setFace (FACE_NORTH, top);
793- up_image.setFace (FACE_EAST, side.rotate (ROTATE_90));
794- up_image.setFace (FACE_SOUTH, top);
795- up_image.setFace (FACE_WEST, side.rotate (ROTATE_90));
796- up_image.setFace (FACE_TOP, back.rotate (ROTATE_90));
787+ BlockImage up_image;
788+ up_image.setFace (FACE_NORTH, top);
789+ up_image.setFace (FACE_EAST, side.rotate (ROTATE_90));
790+ up_image.setFace (FACE_SOUTH, top);
791+ up_image.setFace (FACE_WEST, side.rotate (ROTATE_90));
792+ up_image.setFace (FACE_TOP, back.rotate (ROTATE_90));
797793
798- setBlockImage (id, 0 , up_image);
794+ setBlockImage (id, 0 , up_image);
799795
800- BlockImage down_image;
801- down_image.setFace (FACE_NORTH, top.rotate (ROTATE_180));
802- down_image.setFace (FACE_EAST, side.rotate (ROTATE_90));
803- down_image.setFace (FACE_SOUTH, top.rotate (ROTATE_180));
804- down_image.setFace (FACE_WEST, side.rotate (ROTATE_90));
805- down_image.setFace (FACE_TOP, front.rotate (ROTATE_90));
796+ BlockImage down_image;
797+ down_image.setFace (FACE_NORTH, top.rotate (ROTATE_180));
798+ down_image.setFace (FACE_EAST, side.rotate (ROTATE_90));
799+ down_image.setFace (FACE_SOUTH, top.rotate (ROTATE_180));
800+ down_image.setFace (FACE_WEST, side.rotate (ROTATE_90));
801+ down_image.setFace (FACE_TOP, front.rotate (ROTATE_90));
806802
807- setBlockImage (id, 1 , down_image);
803+ setBlockImage (id, 1 , down_image);
808804}
809805
810806BlockImage buildBed (const RGBAImage& top,
@@ -834,21 +830,21 @@ void IsometricBlockImages::createBed(const BedTextures& textures) { // id 26
834830 RGBAImage side_foot_end = textures[offset + BedTextures::SIDE_FOOT_END];
835831
836832 // Head
837- setBedImage (0 | 8 , colour, buildBed (top_head.rotate (ROTATE_90), 0 , side_head_end, side_head_left.flip (true , false ), side_head_right)); // Pointing south
838- setBedImage (1 | 8 , colour, buildBed (top_head.rotate (ROTATE_180), side_head_right.flip (true , false ), side_head_left, 0 , side_head_end)); // Pointing west
833+ setBedImage (0 | 8 , colour, buildBed (top_head.rotate (ROTATE_90), 0 , side_head_end, side_head_left.flip (true , false ), side_head_right)); // Pointing south
834+ setBedImage (1 | 8 , colour, buildBed (top_head.rotate (ROTATE_180), side_head_right.flip (true , false ), side_head_left, 0 , side_head_end)); // Pointing west
839835 setBedImage (2 | 8 , colour, buildBed (top_head.rotate (ROTATE_270), side_head_end, 0 , side_head_right.flip (true , false ), side_head_left)); // Pointing north
840- setBedImage (3 | 8 , colour, buildBed (top_head, side_head_right, side_head_left.flip (true , false ), side_head_end, 0 )); // Pointing east
836+ setBedImage (3 | 8 , colour, buildBed (top_head, side_head_right, side_head_left.flip (true , false ), side_head_end, 0 )); // Pointing east
841837
842838 // Foot
843839 setBedImage (0 , colour, buildBed (top_foot.rotate (ROTATE_90), side_foot_end, 0 , side_foot_left.flip (true , false ), side_foot_right)); // Pointing south
844- setBedImage (1 , colour, buildBed (top_foot.rotate (ROTATE_180), side_foot_right.flip (true , false ), side_foot_left, side_foot_end, 0 )); // Pointing west
845- setBedImage (2 , colour, buildBed (top_foot.rotate (ROTATE_270), 0 , side_foot_end, side_foot_right.flip (true , false ), side_foot_left)); // Pointing north
846- setBedImage (3 , colour, buildBed (top_foot, side_foot_right, side_foot_left.flip (true , false ), 0 , side_foot_end)); // Pointing east
840+ setBedImage (1 , colour, buildBed (top_foot.rotate (ROTATE_180), side_foot_right.flip (true , false ), side_foot_left, side_foot_end, 0 )); // Pointing west
841+ setBedImage (2 , colour, buildBed (top_foot.rotate (ROTATE_270), 0 , side_foot_end, side_foot_right.flip (true , false ), side_foot_left)); // Pointing north
842+ setBedImage (3 , colour, buildBed (top_foot, side_foot_right, side_foot_left.flip (true , false ), 0 , side_foot_end)); // Pointing east
847843 }
848844}
849845
850846void IsometricBlockImages::createStraightRails (uint16_t id, uint16_t extra_data,
851- const RGBAImage& texture) { // id 27, 28, 66
847+ const RGBAImage& texture) { // id 27, 28, 66
852848 createSingleFaceBlock (id, 0 | extra_data, FACE_BOTTOM, texture.rotate (ROTATE_90));
853849 createSingleFaceBlock (id, 1 | extra_data, FACE_BOTTOM, texture);
854850
@@ -2467,24 +2463,24 @@ void IsometricBlockImages::createBlocks() {
24672463 // --
24682464 createObserver (218 ); // observer
24692465 // shulker box --
2470- createShulkerBox (219 , 0 , resources.getShulkerBoxTextures ()); // white
2471- createShulkerBox (220 , 1 , resources.getShulkerBoxTextures ()); // orange
2472- createShulkerBox (221 , 2 , resources.getShulkerBoxTextures ()); // magenta
2473- createShulkerBox (222 , 3 , resources.getShulkerBoxTextures ()); // light blue
2474- createShulkerBox (223 , 4 , resources.getShulkerBoxTextures ()); // yellow
2475- createShulkerBox (224 , 5 , resources.getShulkerBoxTextures ()); // lime
2476- createShulkerBox (225 , 6 , resources.getShulkerBoxTextures ()); // pink
2477- createShulkerBox (226 , 7 , resources.getShulkerBoxTextures ()); // gray
2478- createShulkerBox (227 , 8 , resources.getShulkerBoxTextures ()); // light gray
2479- createShulkerBox (228 , 9 , resources.getShulkerBoxTextures ()); // cyan
2480- createShulkerBox (229 , 10 , resources.getShulkerBoxTextures ()); // purple
2481- createShulkerBox (230 , 11 , resources.getShulkerBoxTextures ()); // blue
2482- createShulkerBox (231 , 12 , resources.getShulkerBoxTextures ()); // brown
2483- createShulkerBox (232 , 13 , resources.getShulkerBoxTextures ()); // green
2484- createShulkerBox (233 , 14 , resources.getShulkerBoxTextures ()); // red
2485- createShulkerBox (234 , 15 , resources.getShulkerBoxTextures ()); // black
2486- // glazed terracotta --
2487- createGlazedTerracotta (235 , t.GLAZED_TERRACOTTA_WHITE ); // white
2466+ createShulkerBox (219 , 0 , resources.getShulkerBoxTextures ()); // white
2467+ createShulkerBox (220 , 1 , resources.getShulkerBoxTextures ()); // orange
2468+ createShulkerBox (221 , 2 , resources.getShulkerBoxTextures ()); // magenta
2469+ createShulkerBox (222 , 3 , resources.getShulkerBoxTextures ()); // light blue
2470+ createShulkerBox (223 , 4 , resources.getShulkerBoxTextures ()); // yellow
2471+ createShulkerBox (224 , 5 , resources.getShulkerBoxTextures ()); // lime
2472+ createShulkerBox (225 , 6 , resources.getShulkerBoxTextures ()); // pink
2473+ createShulkerBox (226 , 7 , resources.getShulkerBoxTextures ()); // gray
2474+ createShulkerBox (227 , 8 , resources.getShulkerBoxTextures ()); // light gray
2475+ createShulkerBox (228 , 9 , resources.getShulkerBoxTextures ()); // cyan
2476+ createShulkerBox (229 , 10 , resources.getShulkerBoxTextures ()); // purple
2477+ createShulkerBox (230 , 11 , resources.getShulkerBoxTextures ()); // blue
2478+ createShulkerBox (231 , 12 , resources.getShulkerBoxTextures ()); // brown
2479+ createShulkerBox (232 , 13 , resources.getShulkerBoxTextures ()); // green
2480+ createShulkerBox (233 , 14 , resources.getShulkerBoxTextures ()); // red
2481+ createShulkerBox (234 , 15 , resources.getShulkerBoxTextures ()); // black
2482+ // glazed terracotta --
2483+ createGlazedTerracotta (235 , t.GLAZED_TERRACOTTA_WHITE ); // white
24882484 createGlazedTerracotta (236 , t.GLAZED_TERRACOTTA_ORANGE ); // orange
24892485 createGlazedTerracotta (237 , t.GLAZED_TERRACOTTA_MAGENTA ); // magenta
24902486 createGlazedTerracotta (238 , t.GLAZED_TERRACOTTA_LIGHT_BLUE ); // light blue
0 commit comments