Add block type definitions for texture types.

origin
Joshua Sigona 3 years ago
parent c8a62a8e83
commit 6c0b5ccd32
  1. 191
      src/sig/BlockType.java
  2. 28
      src/sig/TextureType.java

@ -1,6 +1,181 @@
package sig; package sig;
public class BlockType { public enum BlockType {
GRASS(
TextureType.GRASS_TOP,
TextureType.DIRT,
TextureType.GRASS2),
STONE(TextureType.STONE),
DIRT(TextureType.DIRT),
PLANKS(TextureType.PLANK),
SLAB(TextureType.SLAB_TOP,TextureType.SLAB),
BRICK(TextureType.BRICK),
TNT(TextureType.TNT_TOP,TextureType.TNT_BOT,TextureType.TNT),
WEB(TextureType.WEB),
FLOWER_RED(TextureType.FLOWER_RED),
FLOWER_YELLOW(TextureType.FLOWER_YELLOW),
SOLID_WATER(TextureType.SOLID_WATER),
SAPLING(TextureType.SAPLING),
COBBLESTONE(TextureType.COBBLESTONE),
BEDROCK(TextureType.BEDROCK),
SAND(TextureType.SAND),
GRAVEL(TextureType.GRAVEL),
LOG(TextureType.LOG_TOP,TextureType.LOG),
IRON_BLOCK(TextureType.IRON_BLOCK),
GOLD_BLOCK(TextureType.GOLD_BLOCK),
DIAMOND_BLOCK(TextureType.DIAMOND_BLOCK),
EMERALD_BLOCK(TextureType.EMERALD_BLOCK),
FIELD_MUSHROOM_RED(TextureType.FIELD_MUSHROOM_RED),
FIELD_MUSHROOM_BROWN(TextureType.FIELD_MUSHROOM_BROWN),
SAPLING2(TextureType.SAPLING2),
GOLD_ORE(TextureType.GOLD_ORE),
IRON_ORE(TextureType.IRON_ORE),
COAL_ORE(TextureType.COAL_ORE),
BOOKSHELF(TextureType.PLANK,TextureType.BOOKSHELF),
MOSSY_COBBLESTONE(TextureType.MOSSY_COBBLESTONE),
OBSIDIAN(TextureType.OBSIDIAN),
GRASS_SIDE_TOP(TextureType.GRASS_SIDE_TOP),
FIELD_GRASS(TextureType.FIELD_GRASS),
CRAFTING_TABLE(TextureType.CRAFTING_TABLE_TOP,TextureType.CRAFTING_TABLE_TOP,TextureType.CRAFTING_TABLE_FRONT,TextureType.CRAFTING_TABLE,TextureType.CRAFTING_TABLE),
FURNACE(TextureType.FURNACE,TextureType.FURNACE,TextureType.FURNACE_FRONT,TextureType.FURNACE_BACK,TextureType.FURNACE),
DISPENSER(TextureType.FURNACE,TextureType.FURNACE,TextureType.DISPENSER_FRONT,TextureType.FURNACE_BACK,TextureType.FURNACE),
SPONGE(TextureType.SPONGE),
GLASS(TextureType.GLASS),
DIAMOND_ORE(TextureType.DIAMOND_ORE),
REDSTONE_ORE(TextureType.REDSTONE_ORE),
LEAVES(TextureType.LEAVES),
LEAVES2(TextureType.LEAVES2),
STONE_BRICK(TextureType.STONE_BRICK),
FIELD_DEAD_GRASS(TextureType.FIELD_DEAD_GRASS),
FIELD_GRASS2(TextureType.FIELD_GRASS2),
SPRUCE_SAPLING(TextureType.SAPLING2),
WOOL(TextureType.WOOL),
SPAWNER(TextureType.CAGE),
SNOW(TextureType.SNOW),
ICE(TextureType.ICE),
SNOW_DIRT(TextureType.SNOW,TextureType.DIRT,TextureType.SNOW_DIRT),
CACTUS_TOP(TextureType.CACTUS_TOP,TextureType.CACTUS),
CACTUS(TextureType.CACTUS_INSIDE_TOP,TextureType.CACTUS),
CLAY(TextureType.CLAY),
SUGARCANE(TextureType.SUGARCANE),
JUKEBOX(TextureType.JUKEBOX_TOP,TextureType.COMMAND_BLOCK_TOP,TextureType.JUKEBOX),
LILYPAD(TextureType.LILYPAD),
PODZOL(TextureType.PODZOL_TOP,TextureType.DIRT,TextureType.PODZOL),
SAPLING3(TextureType.SAPLING3),
TORCH(TextureType.TORCH),
DOOR(TextureType.DOOR),
IRON_DOOR(TextureType.IRON_DOOR),
LADDER(TextureType.LADDER),
TRAPDOOR(TextureType.TRAPDOOR),
IRON_BARS(TextureType.IRON_BARS),
SOIL_WET(TextureType.WET_SOIL,TextureType.DIRT,TextureType.DIRT),
WHEAT(TextureType.WHEAT),
WHEAT_0(TextureType.WHEAT_0),
WHEAT_1(TextureType.WHEAT_1),
WHEAT_2(TextureType.WHEAT_2),
WHEAT_3(TextureType.WHEAT_3),
WHEAT_4(TextureType.WHEAT_4),
WHEAT_5(TextureType.WHEAT_5),
WHEAT_6(TextureType.WHEAT_6),
LEVER(TextureType.LEVER),
REDSTONE_TORCH(TextureType.REDSTONE_TORCH),
MOSSY_STONE_BRICK(TextureType.MOSSY_STONE_BRICK),
CRACKED_STONE_BRICK(TextureType.CRACKED_STONE_BRICK),
PUMPKIN(TextureType.PUMPKIN_TOP,TextureType.PUMPKIN,TextureType.PUMPKIN_FRONT,TextureType.PUMPKIN,TextureType.PUMPKIN),
JACKOLANTERN(TextureType.PUMPKIN_TOP,TextureType.PUMPKIN,TextureType.JACKOLANTERN,TextureType.PUMPKIN,TextureType.PUMPKIN),
CAKE(TextureType.CAKE_TOP,TextureType.CAKE_BOTTOM,TextureType.CAKE),
CAKE_EATEN(TextureType.CAKE_TOP,TextureType.CAKE_BOTTOM,TextureType.CAKE,TextureType.CAKE,TextureType.CAKE_EATEN,TextureType.CAKE),
RED_MUSHROOM(TextureType.RED_MUSHROOM,TextureType.MUSHROOM_INSIDE,TextureType.RED_MUSHROOM,TextureType.MUSHROOM_INSIDE,TextureType.MUSHROOM_INSIDE,TextureType.MUSHROOM_INSIDE),
BROWN_MUSHROOM(TextureType.BROWN_MUSHROOM,TextureType.MUSHROOM_INSIDE,TextureType.RED_MUSHROOM,TextureType.MUSHROOM_INSIDE,TextureType.MUSHROOM_INSIDE,TextureType.MUSHROOM_INSIDE),
MUSHROOM_STALK(TextureType.MUSHROOM_STALK),
VINES(TextureType.VINES),
LAPIS_LAZULI_BLOCK(TextureType.LAPIS_LAZULI_BLOCK),
GREEN_WOOL(TextureType.GREEN_WOOL),
LIME_WOOL(TextureType.LIME_WOOL),
REDSTONE_REPEATER(TextureType.REDSTONE_REPEATER_OFF),
REDSTONE_REPEATER_ON(TextureType.REDSTONE_REPEATER_ON),
LEAVES3(TextureType.LEAVES3),
LEAVES4(TextureType.LEAVES4),
BED(TextureType.BED_TOP,TextureType.PLANK,TextureType.BED_FRONT,TextureType.BED_BACK,TextureType.BED_SIDE),
MELON(TextureType.MELON_TOP,TextureType.MELON),
CAULDRON(TextureType.CAULDRON_TOP,TextureType.CAULDRON_BOTTOM,TextureType.CAULDRON),
NETHERRACK(TextureType.NETHERRACK),
SOUL_SAND(TextureType.SOUL_SAND),
GLOWSTONE(TextureType.GLOWSTONE),
STICKY_PISTON(TextureType.STICKY_PISTON_HEAD,TextureType.DROPPER_SIDE,TextureType.PISTON),
PISTON(TextureType.PISTON_HEAD,TextureType.DROPPER_SIDE,TextureType.PISTON),
MELON_STEM(TextureType.MELON_STEM),
MELON_STEM_CONNECTED(TextureType.MELON_STEM_CONNECTED),
GLASS_PANE(TextureType.GLASS_PANE_SIDE,TextureType.GLASS_PANE_SIDE,TextureType.GLASS,TextureType.GLASS,TextureType.GLASS_PANE_SIDE),
JUNGLE_LOG(TextureType.JUNGLE_LOG),
BREWING_STAND(TextureType.BREWING_STAND,TextureType.BREWING_STAND,TextureType.BREWING_STAND_BASE),
END_PORTAL(TextureType.END_EYE_PORTAL,TextureType.END_STONE,TextureType.END_EYE_PORTAL_SIDE),
LAPIS_LAZULI_ORE(TextureType.LAPIS_LAZULI_ORE),
BROWN_WOOL(TextureType.BROWN_WOOL),
TRACK_TURN(TextureType.TRACK_TURN),
TRACK(TextureType.TRACK),
BLACK_WOOL(TextureType.BLACK_WOOL),
GRAY_WOOL(TextureType.GRAY_WOOL),
RED_WOOL(TextureType.RED_WOOL),
PINK_WOOL(TextureType.PINK_WOOL),
YELLOW_WOOL(TextureType.YELLOW_WOOL),
POWERED_TRACK(TextureType.POWERED_RAIL_OFF),
POWERED_TRACK_ON(TextureType.POWERED_RAIL),
REDSTONE(TextureType.REDSTONE_4),
REDSTONE_2(TextureType.REDSTONE_2),
ENCHANTMENT_TABLE(TextureType.ENCHANTMENT_TABLE_TOP,TextureType.ENCHANTMENT_TABLE_BOTTOM,TextureType.ENCHANTMENT_TABLE),
COCOA_BEAN(TextureType.COCOA_BEAN),
COCOA_BEAN_0(TextureType.COCOA_BEAN_0),
COCOA_BEAN_1(TextureType.COCOA_BEAN_1),
EMERALD_ORE(TextureType.EMERALD_ORE),
TRIPWIRE_HOOK(TextureType.TRIPWIRE_HOOK),
TRIPWIRE(TextureType.TRIPWIRE),
END_STONE(TextureType.END_STONE),
SANDSTONE(TextureType.SANDSTONE_TOP,TextureType.SANDSTONE_BOTTOM,TextureType.SANDSTONE),
BLUE_WOOL(TextureType.BLUE_WOOL),
LIGHT_BLUE_WOOL(TextureType.LIGHT_BLUE_WOOL),
COMMAND_BLOCK(TextureType.COMMAND_BLOCK_TOP,TextureType.COMMAND_BLOCK),
PURPLE_WOOL(TextureType.PURPLE_WOOL),
MAGENTA_WOOL(TextureType.MAGENTA_WOOL),
DETECTOR_RAIL(TextureType.DETECTOR_RAIL),
JUNGLE_LEAVES(TextureType.JUNGLE_LEAVES),
JUNGLE_LEAVES2(TextureType.JUNGLE_LEAVES2),
SPRUCE_PLANK(TextureType.SPRUCE_PLANK),
JUNGLE_PLANK(TextureType.JUNGLE_PLANK),
CARROT(TextureType.CARROT),
CARROT_0(TextureType.CARROT_0),
CARROT_1(TextureType.CARROT_1),
CARROT_2(TextureType.CARROT_2),
POTATO(TextureType.POTATO),
POTATO_0(TextureType.CARROT_0),
POTATO_1(TextureType.CARROT_1),
POTATO_2(TextureType.CARROT_2),
WATER(TextureType.WATER),
CYAN_WOOL(TextureType.CYAN_WOOL),
ORANGE_WOOL(TextureType.ORANGE_WOOL),
REDSTONE_LAMP(TextureType.REDSTONE_LAMP),
REDSTONE_LAMP_OFF(TextureType.REDSTONE_LAMP_OFF),
CHISELED_STONE_BRICK(TextureType.CHISELED_STONE),
BIRCH_PLANK(TextureType.BIRCH_PLANK),
NETHER_BRICK(TextureType.NETHER_BRICK),
LIGHT_GRAY_WOOL(TextureType.LIGHT_GRAY_WOOL),
NETHER_WART(TextureType.NETHER_WART),
NETHER_WART_0(TextureType.NETHER_WART0),
NETHER_WART_1(TextureType.NETHER_WART1),
CHISELED_DECORATED_SANDSTONE(TextureType.CHISELED_SANDSTONE_DECORATED),
CHISELED_SANDSTONE(TextureType.CHISELED_SANDSTONE),
LAVA(TextureType.LAVA),
CRACKED_0(TextureType.BREAK_0),
CRACKED_1(TextureType.BREAK_1),
CRACKED_2(TextureType.BREAK_2),
CRACKED_3(TextureType.BREAK_3),
CRACKED_4(TextureType.BREAK_4),
CRACKED_5(TextureType.BREAK_5),
CRACKED_6(TextureType.BREAK_6),
CRACKED_7(TextureType.BREAK_7),
CRACKED_8(TextureType.BREAK_8),
CRACKED_9(TextureType.BREAK_9),
;
public static final int TOP = 0; public static final int TOP = 0;
public static final int BOTTOM = 1; public static final int BOTTOM = 1;
@ -9,8 +184,6 @@ public class BlockType {
public static final int LEFT = 4; public static final int LEFT = 4;
public static final int BACK = 5; public static final int BACK = 5;
TextureType sides[] = new TextureType[6]; TextureType sides[] = new TextureType[6];
/* /*
0 TOP 0 TOP
@ -25,6 +198,10 @@ public class BlockType {
sides[i]=allSides; sides[i]=allSides;
} }
} }
BlockType(TextureType topbot,TextureType side) {
sides[TOP]=sides[BOTTOM]=topbot;
sides[FRONT]=sides[RIGHT]=sides[LEFT]=sides[BACK]=side;
}
BlockType(TextureType top,TextureType bottom,TextureType side) { BlockType(TextureType top,TextureType bottom,TextureType side) {
sides[TOP]=top; sides[TOP]=top;
sides[BOTTOM]=bottom; sides[BOTTOM]=bottom;
@ -37,4 +214,12 @@ public class BlockType {
sides[BACK]=back; sides[BACK]=back;
sides[RIGHT]=sides[LEFT]=side; sides[RIGHT]=sides[LEFT]=side;
} }
BlockType(TextureType top,TextureType bottom,TextureType front,TextureType back,TextureType sideRight,TextureType sideLeft) {
sides[TOP]=top;
sides[BOTTOM]=bottom;
sides[FRONT]=front;
sides[BACK]=back;
sides[RIGHT]=sideRight;
sides[LEFT]=sideLeft;
}
} }

@ -27,8 +27,8 @@ public enum TextureType {
GOLD_BLOCK(7,1), GOLD_BLOCK(7,1),
DIAMOND_BLOCK(8,1), DIAMOND_BLOCK(8,1),
EMERALD_BLOCK(9,1), EMERALD_BLOCK(9,1),
MUSHROOM_RED(12,1), FIELD_MUSHROOM_RED(12,1),
MUSHROOM_BROWN(13,1), FIELD_MUSHROOM_BROWN(13,1),
SAPLING2(14,1), SAPLING2(14,1),
GOLD_ORE(0, 2), GOLD_ORE(0, 2),
IRON_ORE(1, 2), IRON_ORE(1, 2),
@ -51,7 +51,7 @@ public enum TextureType {
DIAMOND_ORE(2, 3), DIAMOND_ORE(2, 3),
REDSTONE_ORE(3, 3), REDSTONE_ORE(3, 3),
LEAVES(4, 3), LEAVES(4, 3),
JUNGLE_LEAVES(5, 3), LEAVES2(5, 3),
STONE_BRICK(6, 3), STONE_BRICK(6, 3),
FIELD_DEAD_GRASS(7, 3), FIELD_DEAD_GRASS(7, 3),
FIELD_GRASS2(8, 3), FIELD_GRASS2(8, 3),
@ -121,8 +121,8 @@ public enum TextureType {
JACKOLANTERN(8, 7), JACKOLANTERN(8, 7),
CAKE_TOP(9, 7), CAKE_TOP(9, 7),
CAKE(10,7), CAKE(10,7),
FRUITCAKE(11,7), CAKE_EATEN(11,7),
ORANGE_MUSHROOM(12,7), CAKE_BOTTOM(12,7),
RED_MUSHROOM(13,7), RED_MUSHROOM(13,7),
BROWN_MUSHROOM(14,7), BROWN_MUSHROOM(14,7),
MELON_STEM_CONNECTED(15,7), MELON_STEM_CONNECTED(15,7),
@ -130,8 +130,8 @@ public enum TextureType {
RED_WOOL(1, 8), RED_WOOL(1, 8),
PINK_WOOL(2, 8), PINK_WOOL(2, 8),
REDSTONE_REPEATER_OFF(3, 8), REDSTONE_REPEATER_OFF(3, 8),
LEAVES2(4, 8), LEAVES3(4, 8),
LEAVES3(5, 8), LEAVES4(5, 8),
BED_TOP(6, 8,2,1), BED_TOP(6, 8,2,1),
//(7, 8), //(7, 8),
MELON(8, 8), MELON(8, 8),
@ -139,9 +139,9 @@ public enum TextureType {
CAULDRON_TOP(10,8), CAULDRON_TOP(10,8),
CAULDRON_INSIDE(11,8), CAULDRON_INSIDE(11,8),
CAKE_ICON(12,8), CAKE_ICON(12,8),
RED_MUSHROOM_BLOCK(13,8), MUSHROOM_STALK(13,8),
BROWN_MUSHROOM_BLOCK(14,8), MUSHROOM_INSIDE(14,8),
LEAVES4(15,8), VINES(15,8),
LAPIS_LAZULI_BLOCK(0, 9), LAPIS_LAZULI_BLOCK(0, 9),
GREEN_WOOL(1, 9), GREEN_WOOL(1, 9),
LIME_WOOL(2, 9), LIME_WOOL(2, 9),
@ -194,8 +194,8 @@ public enum TextureType {
PURPLE_WOOL(1, 12), PURPLE_WOOL(1, 12),
MAGENTA_WOOL(2, 12), MAGENTA_WOOL(2, 12),
DETECTOR_RAIL(3, 12), DETECTOR_RAIL(3, 12),
JUNGLE_LEAVES2(4, 12), JUNGLE_LEAVES(4, 12),
JUNGLE_LEAVES3(5, 12), JUNGLE_LEAVES2(5, 12),
SPRUCE_PLANK(6, 12), SPRUCE_PLANK(6, 12),
JUNGLE_PLANK(7, 12), JUNGLE_PLANK(7, 12),
CARROT_0(8, 12), CARROT_0(8, 12),
@ -236,8 +236,8 @@ public enum TextureType {
(11,14), (11,14),
(12,14), (12,14),
(13,14), (13,14),
(14,14), (14,14),*/
(15,14),*/ LAVA(15,14),
BREAK_0(0, 15), BREAK_0(0, 15),
BREAK_1(1, 15), BREAK_1(1, 15),
BREAK_2(2, 15), BREAK_2(2, 15),

Loading…
Cancel
Save