| 1 | package net.minecraft.client.model.geom;
|
| 2 |
|
| 3 | import com.google.common.collect.Sets;
|
| 4 | import java.util.Set;
|
| 5 | import java.util.stream.Stream;
|
| 6 | import net.fabricmc.api.EnvType;
|
| 7 | import net.fabricmc.api.Environment;
|
| 8 | import net.minecraft.client.renderer.entity.ArmorModelSet;
|
| 9 | import net.minecraft.resources.Identifier;
|
| 10 |
|
| 11 | @Environment(EnvType.CLIENT)
|
| 12 | public class ModelLayers {
|
| 13 | private static final String DEFAULT_LAYER = "main";
|
| 14 | private static final Set<ModelLayerLocation> ALL_MODELS = Sets.newHashSet();
|
| 15 | public static final ModelLayerLocation ACACIA_BOAT = register("boat/acacia");
|
| 16 | public static final ModelLayerLocation ACACIA_CHEST_BOAT = register("chest_boat/acacia");
|
| 17 | public static final ModelLayerLocation ALLAY = register("allay");
|
| 18 | public static final ModelLayerLocation ARMADILLO = register("armadillo");
|
| 19 | public static final ModelLayerLocation ARMADILLO_BABY = register("armadillo_baby");
|
| 20 | public static final ModelLayerLocation ARMOR_STAND = register("armor_stand");
|
| 21 | public static final ArmorModelSet<ModelLayerLocation> ARMOR_STAND_ARMOR = registerArmorSet("armor_stand");
|
| 22 | public static final ModelLayerLocation ARMOR_STAND_SMALL = register("armor_stand_small");
|
| 23 | public static final ArmorModelSet<ModelLayerLocation> ARMOR_STAND_SMALL_ARMOR = registerArmorSet("armor_stand_small");
|
| 24 | public static final ModelLayerLocation ARROW = register("arrow");
|
| 25 | public static final ModelLayerLocation AXOLOTL = register("axolotl");
|
| 26 | public static final ModelLayerLocation AXOLOTL_BABY = register("axolotl_baby");
|
| 27 | public static final ModelLayerLocation BAMBOO_CHEST_RAFT = register("chest_boat/bamboo");
|
| 28 | public static final ModelLayerLocation BAMBOO_RAFT = register("boat/bamboo");
|
| 29 | public static final ModelLayerLocation STANDING_BANNER = register("standing_banner");
|
| 30 | public static final ModelLayerLocation STANDING_BANNER_FLAG = register("standing_banner", "flag");
|
| 31 | public static final ModelLayerLocation WALL_BANNER = register("wall_banner");
|
| 32 | public static final ModelLayerLocation WALL_BANNER_FLAG = register("wall_banner", "flag");
|
| 33 | public static final ModelLayerLocation BAT = register("bat");
|
| 34 | public static final ModelLayerLocation BEE = register("bee");
|
| 35 | public static final ModelLayerLocation BEE_BABY = register("bee_baby");
|
| 36 | public static final ModelLayerLocation BEE_STINGER = register("bee_stinger");
|
| 37 | public static final ModelLayerLocation BELL = register("bell");
|
| 38 | public static final ModelLayerLocation BIRCH_BOAT = register("boat/birch");
|
| 39 | public static final ModelLayerLocation BIRCH_CHEST_BOAT = register("chest_boat/birch");
|
| 40 | public static final ModelLayerLocation BLAZE = register("blaze");
|
| 41 | public static final ModelLayerLocation BOAT_WATER_PATCH = register("boat", "water_patch");
|
| 42 | public static final ModelLayerLocation BOGGED = register("bogged");
|
| 43 | public static final ArmorModelSet<ModelLayerLocation> BOGGED_ARMOR = registerArmorSet("bogged");
|
| 44 | public static final ModelLayerLocation BOGGED_OUTER_LAYER = register("bogged", "outer");
|
| 45 | public static final ModelLayerLocation BOOK = register("book");
|
| 46 | public static final ModelLayerLocation BREEZE = register("breeze");
|
| 47 | public static final ModelLayerLocation BREEZE_WIND = register("breeze", "wind");
|
| 48 | public static final ModelLayerLocation BREEZE_EYES = register("breeze", "eyes");
|
| 49 | public static final ModelLayerLocation CAMEL = register("camel");
|
| 50 | public static final ModelLayerLocation CAMEL_BABY = register("camel_baby");
|
| 51 | public static final ModelLayerLocation CAMEL_SADDLE = register("camel", "saddle");
|
| 52 | public static final ModelLayerLocation CAMEL_HUSK_SADDLE = register("camel_husk", "saddle");
|
| 53 | public static final ModelLayerLocation CAT = register("cat");
|
| 54 | public static final ModelLayerLocation CAT_BABY = register("cat_baby");
|
| 55 | public static final ModelLayerLocation CAT_BABY_COLLAR = register("cat_baby", "collar");
|
| 56 | public static final ModelLayerLocation CAT_COLLAR = register("cat", "collar");
|
| 57 | public static final ModelLayerLocation CAVE_SPIDER = register("cave_spider");
|
| 58 | public static final ModelLayerLocation CHERRY_BOAT = register("boat/cherry");
|
| 59 | public static final ModelLayerLocation CHERRY_CHEST_BOAT = register("chest_boat/cherry");
|
| 60 | public static final ModelLayerLocation CHEST = register("chest");
|
| 61 | public static final ModelLayerLocation CHEST_MINECART = register("chest_minecart");
|
| 62 | public static final ModelLayerLocation CHICKEN = register("chicken");
|
| 63 | public static final ModelLayerLocation CHICKEN_BABY = register("chicken_baby");
|
| 64 | public static final ModelLayerLocation COD = register("cod");
|
| 65 | public static final ModelLayerLocation COLD_CHICKEN = register("cold_chicken");
|
| 66 | public static final ModelLayerLocation COLD_COW = register("cold_cow");
|
| 67 | public static final ModelLayerLocation COLD_COW_BABY = register("cold_cow_baby");
|
| 68 | public static final ModelLayerLocation COLD_PIG = register("cold_pig");
|
| 69 | public static final ModelLayerLocation COMMAND_BLOCK_MINECART = register("command_block_minecart");
|
| 70 | public static final ModelLayerLocation CONDUIT_CAGE = register("conduit", "cage");
|
| 71 | public static final ModelLayerLocation CONDUIT_EYE = register("conduit", "eye");
|
| 72 | public static final ModelLayerLocation CONDUIT_SHELL = register("conduit", "shell");
|
| 73 | public static final ModelLayerLocation CONDUIT_WIND = register("conduit", "wind");
|
| 74 | public static final ModelLayerLocation COPPER_GOLEM = register("copper_golem");
|
| 75 | public static final ModelLayerLocation COPPER_GOLEM_EYES = register("copper_golem", "eyes");
|
| 76 | public static final ModelLayerLocation COPPER_GOLEM_RUNNING = register("copper_golem_running");
|
| 77 | public static final ModelLayerLocation COPPER_GOLEM_SITTING = register("copper_golem_sitting");
|
| 78 | public static final ModelLayerLocation COPPER_GOLEM_STAR = register("copper_golem_star");
|
| 79 | public static final ModelLayerLocation ZOMBIE_NAUTILUS_CORAL = register("zombie_nautilus_coral");
|
| 80 | public static final ModelLayerLocation COW = register("cow");
|
| 81 | public static final ModelLayerLocation COW_BABY = register("cow_baby");
|
| 82 | public static final ModelLayerLocation CREAKING = register("creaking");
|
| 83 | public static final ModelLayerLocation CREAKING_EYES = register("creaking", "eyes");
|
| 84 | public static final ModelLayerLocation CREEPER = register("creeper");
|
| 85 | public static final ModelLayerLocation CREEPER_ARMOR = register("creeper", "armor");
|
| 86 | public static final ModelLayerLocation CREEPER_HEAD = register("creeper_head");
|
| 87 | public static final ModelLayerLocation CUSHION = register("cushion");
|
| 88 | public static final ModelLayerLocation DARK_OAK_BOAT = register("boat/dark_oak");
|
| 89 | public static final ModelLayerLocation DARK_OAK_CHEST_BOAT = register("chest_boat/dark_oak");
|
| 90 | public static final ModelLayerLocation DECORATED_POT_BASE = register("decorated_pot_base");
|
| 91 | public static final ModelLayerLocation DECORATED_POT_SIDES = register("decorated_pot_sides");
|
| 92 | public static final ModelLayerLocation DOLPHIN = register("dolphin");
|
| 93 | public static final ModelLayerLocation DOLPHIN_BABY = register("dolphin_baby");
|
| 94 | public static final ModelLayerLocation DONKEY = register("donkey");
|
| 95 | public static final ModelLayerLocation DONKEY_BABY = register("donkey_baby");
|
| 96 | public static final ModelLayerLocation DONKEY_SADDLE = register("donkey", "saddle");
|
| 97 | public static final ModelLayerLocation DOUBLE_CHEST_LEFT = register("double_chest_left");
|
| 98 | public static final ModelLayerLocation DOUBLE_CHEST_RIGHT = register("double_chest_right");
|
| 99 | public static final ModelLayerLocation DRAGON_SKULL = register("dragon_skull");
|
| 100 | public static final ModelLayerLocation DROWNED = register("drowned");
|
| 101 | public static final ModelLayerLocation DROWNED_BABY = register("drowned_baby");
|
| 102 | public static final ArmorModelSet<ModelLayerLocation> DROWNED_BABY_ARMOR = registerArmorSet("drowned_baby");
|
| 103 | public static final ModelLayerLocation DROWNED_BABY_OUTER_LAYER = register("drowned_baby", "outer");
|
| 104 | public static final ArmorModelSet<ModelLayerLocation> DROWNED_ARMOR = registerArmorSet("drowned");
|
| 105 | public static final ModelLayerLocation DROWNED_OUTER_LAYER = register("drowned", "outer");
|
| 106 | public static final ModelLayerLocation ELDER_GUARDIAN = register("elder_guardian");
|
| 107 | public static final ModelLayerLocation ELYTRA = register("elytra");
|
| 108 | public static final ModelLayerLocation ELYTRA_BABY = register("elytra_baby");
|
| 109 | public static final ModelLayerLocation ENDERMAN = register("enderman");
|
| 110 | public static final ModelLayerLocation ENDERMITE = register("endermite");
|
| 111 | public static final ModelLayerLocation ENDER_DRAGON = register("ender_dragon");
|
| 112 | public static final ModelLayerLocation END_CRYSTAL = register("end_crystal");
|
| 113 | public static final ModelLayerLocation EVOKER = register("evoker");
|
| 114 | public static final ModelLayerLocation EVOKER_FANGS = register("evoker_fangs");
|
| 115 | public static final ModelLayerLocation FOX = register("fox");
|
| 116 | public static final ModelLayerLocation FOX_BABY = register("fox_baby");
|
| 117 | public static final ModelLayerLocation FROG = register("frog");
|
| 118 | public static final ModelLayerLocation FURNACE_MINECART = register("furnace_minecart");
|
| 119 | public static final ModelLayerLocation GHAST = register("ghast");
|
| 120 | public static final ModelLayerLocation GIANT = register("giant");
|
| 121 | public static final ArmorModelSet<ModelLayerLocation> GIANT_ARMOR = registerArmorSet("giant");
|
| 122 | public static final ModelLayerLocation GLOW_SQUID = register("glow_squid");
|
| 123 | public static final ModelLayerLocation GLOW_SQUID_BABY = register("glow_squid_baby");
|
| 124 | public static final ModelLayerLocation GOAT = register("goat");
|
| 125 | public static final ModelLayerLocation GOAT_BABY = register("goat_baby");
|
| 126 | public static final ModelLayerLocation GUARDIAN = register("guardian");
|
| 127 | public static final ModelLayerLocation HAPPY_GHAST = register("happy_ghast");
|
| 128 | public static final ModelLayerLocation HAPPY_GHAST_BABY = register("happy_ghast_baby");
|
| 129 | public static final ModelLayerLocation HAPPY_GHAST_HARNESS = register("happy_ghast_harness");
|
| 130 | public static final ModelLayerLocation HAPPY_GHAST_BABY_HARNESS = register("happy_ghast_baby_harness");
|
| 131 | public static final ModelLayerLocation HAPPY_GHAST_ROPES = register("happy_ghast_ropes");
|
| 132 | public static final ModelLayerLocation HAPPY_GHAST_BABY_ROPES = register("happy_ghast_baby_ropes");
|
| 133 | public static final ModelLayerLocation HOGLIN = register("hoglin");
|
| 134 | public static final ModelLayerLocation HOGLIN_BABY = register("hoglin_baby");
|
| 135 | public static final ModelLayerLocation HOPPER_MINECART = register("hopper_minecart");
|
| 136 | public static final ModelLayerLocation HORSE = register("horse");
|
| 137 | public static final ModelLayerLocation HORSE_ARMOR = register("horse_armor");
|
| 138 | public static final ModelLayerLocation HORSE_SADDLE = register("horse", "saddle");
|
| 139 | public static final ModelLayerLocation HORSE_BABY = register("horse_baby");
|
| 140 | public static final ModelLayerLocation HUSK = register("husk");
|
| 141 | public static final ModelLayerLocation HUSK_BABY = register("husk_baby");
|
| 142 | public static final ArmorModelSet<ModelLayerLocation> HUSK_BABY_ARMOR = registerArmorSet("husk_baby");
|
| 143 | public static final ArmorModelSet<ModelLayerLocation> HUSK_ARMOR = registerArmorSet("husk");
|
| 144 | public static final ModelLayerLocation ILLUSIONER = register("illusioner");
|
| 145 | public static final ModelLayerLocation IRON_GOLEM = register("iron_golem");
|
| 146 | public static final ModelLayerLocation JUNGLE_BOAT = register("boat/jungle");
|
| 147 | public static final ModelLayerLocation JUNGLE_CHEST_BOAT = register("chest_boat/jungle");
|
| 148 | public static final ModelLayerLocation LEASH_KNOT = register("leash_knot");
|
| 149 | public static final ModelLayerLocation LLAMA = register("llama");
|
| 150 | public static final ModelLayerLocation LLAMA_BABY = register("llama_baby");
|
| 151 | public static final ModelLayerLocation LLAMA_BABY_DECOR = register("llama_baby", "decor");
|
| 152 | public static final ModelLayerLocation LLAMA_DECOR = register("llama", "decor");
|
| 153 | public static final ModelLayerLocation LLAMA_SPIT = register("llama_spit");
|
| 154 | public static final ModelLayerLocation MAGMA_CUBE = register("magma_cube");
|
| 155 | public static final ModelLayerLocation MANGROVE_BOAT = register("boat/mangrove");
|
| 156 | public static final ModelLayerLocation MANGROVE_CHEST_BOAT = register("chest_boat/mangrove");
|
| 157 | public static final ModelLayerLocation MINECART = register("minecart");
|
| 158 | public static final ModelLayerLocation MOOSHROOM = register("mooshroom");
|
| 159 | public static final ModelLayerLocation MOOSHROOM_BABY = register("mooshroom_baby");
|
| 160 | public static final ModelLayerLocation MULE = register("mule");
|
| 161 | public static final ModelLayerLocation MULE_BABY = register("mule_baby");
|
| 162 | public static final ModelLayerLocation MULE_SADDLE = register("mule", "saddle");
|
| 163 | public static final ModelLayerLocation NAUTILUS = register("nautilus");
|
| 164 | public static final ModelLayerLocation NAUTILUS_BABY = register("nautilus_baby");
|
| 165 | public static final ModelLayerLocation NAUTILUS_SADDLE = register("nautilus", "saddle");
|
| 166 | public static final ModelLayerLocation NAUTILUS_ARMOR = register("nautilus_armor");
|
| 167 | public static final ModelLayerLocation OAK_BOAT = register("boat/oak");
|
| 168 | public static final ModelLayerLocation OAK_CHEST_BOAT = register("chest_boat/oak");
|
| 169 | public static final ModelLayerLocation OCELOT = register("ocelot");
|
| 170 | public static final ModelLayerLocation OCELOT_BABY = register("ocelot_baby");
|
| 171 | public static final ModelLayerLocation PALE_OAK_BOAT = register("boat/pale_oak");
|
| 172 | public static final ModelLayerLocation PALE_OAK_CHEST_BOAT = register("chest_boat/pale_oak");
|
| 173 | public static final ModelLayerLocation PANDA = register("panda");
|
| 174 | public static final ModelLayerLocation PANDA_BABY = register("panda_baby");
|
| 175 | public static final ModelLayerLocation PARCHED = register("parched");
|
| 176 | public static final ArmorModelSet<ModelLayerLocation> PARCHED_ARMOR = registerArmorSet("parched");
|
| 177 | public static final ModelLayerLocation PARCHED_OUTER_LAYER = register("parched", "outer");
|
| 178 | public static final ModelLayerLocation PARROT = register("parrot");
|
| 179 | public static final ModelLayerLocation PHANTOM = register("phantom");
|
| 180 | public static final ModelLayerLocation PIG = register("pig");
|
| 181 | public static final ModelLayerLocation PIGLIN = register("piglin");
|
| 182 | public static final ModelLayerLocation PIGLIN_BABY = register("piglin_baby");
|
| 183 | public static final ArmorModelSet<ModelLayerLocation> PIGLIN_BABY_ARMOR = registerArmorSet("piglin_baby");
|
| 184 | public static final ModelLayerLocation PIGLIN_BRUTE = register("piglin_brute");
|
| 185 | public static final ArmorModelSet<ModelLayerLocation> PIGLIN_BRUTE_ARMOR = registerArmorSet("piglin_brute");
|
| 186 | public static final ModelLayerLocation PIGLIN_HEAD = register("piglin_head");
|
| 187 | public static final ArmorModelSet<ModelLayerLocation> PIGLIN_ARMOR = registerArmorSet("piglin");
|
| 188 | public static final ModelLayerLocation PIG_BABY = register("pig_baby");
|
| 189 | public static final ModelLayerLocation PIG_SADDLE = register("pig", "saddle");
|
| 190 | public static final ModelLayerLocation PILLAGER = register("pillager");
|
| 191 | public static final ModelLayerLocation PLAYER = register("player");
|
| 192 | public static final ModelLayerLocation PLAYER_CAPE = register("player", "cape");
|
| 193 | public static final ModelLayerLocation PLAYER_EARS = register("player", "ears");
|
| 194 | public static final ModelLayerLocation PLAYER_HEAD = register("player_head");
|
| 195 | public static final ArmorModelSet<ModelLayerLocation> PLAYER_ARMOR = registerArmorSet("player");
|
| 196 | public static final ModelLayerLocation PLAYER_SLIM = register("player_slim");
|
| 197 | public static final ArmorModelSet<ModelLayerLocation> PLAYER_SLIM_ARMOR = registerArmorSet("player_slim");
|
| 198 | public static final ModelLayerLocation PLAYER_SPIN_ATTACK = register("spin_attack");
|
| 199 | public static final ModelLayerLocation POLAR_BEAR = register("polar_bear");
|
| 200 | public static final ModelLayerLocation POLAR_BEAR_BABY = register("polar_bear_baby");
|
| 201 | public static final ModelLayerLocation POPLAR_BOAT = register("boat/poplar");
|
| 202 | public static final ModelLayerLocation POPLAR_CHEST_BOAT = register("chest_boat/poplar");
|
| 203 | public static final ModelLayerLocation PUFFERFISH_BIG = register("pufferfish_big");
|
| 204 | public static final ModelLayerLocation PUFFERFISH_MEDIUM = register("pufferfish_medium");
|
| 205 | public static final ModelLayerLocation PUFFERFISH_SMALL = register("pufferfish_small");
|
| 206 | public static final ModelLayerLocation RABBIT = register("rabbit");
|
| 207 | public static final ModelLayerLocation RABBIT_BABY = register("rabbit_baby");
|
| 208 | public static final ModelLayerLocation RAVAGER = register("ravager");
|
| 209 | public static final ModelLayerLocation SALMON = register("salmon");
|
| 210 | public static final ModelLayerLocation SALMON_LARGE = register("salmon_large");
|
| 211 | public static final ModelLayerLocation SALMON_SMALL = register("salmon_small");
|
| 212 | public static final ModelLayerLocation SHEEP = register("sheep");
|
| 213 | public static final ModelLayerLocation SHEEP_BABY = register("sheep_baby");
|
| 214 | public static final ModelLayerLocation SHEEP_BABY_WOOL = register("sheep_baby", "wool");
|
| 215 | public static final ModelLayerLocation SHEEP_WOOL = register("sheep", "wool");
|
| 216 | public static final ModelLayerLocation SHEEP_WOOL_UNDERCOAT = register("sheep", "wool_undercoat");
|
| 217 | public static final ModelLayerLocation SHIELD = register("shield");
|
| 218 | public static final ModelLayerLocation SHULKER = register("shulker");
|
| 219 | public static final ModelLayerLocation SHULKER_BOX = register("shulker_box");
|
| 220 | public static final ModelLayerLocation SHULKER_BULLET = register("shulker_bullet");
|
| 221 | public static final ModelLayerLocation SILVERFISH = register("silverfish");
|
| 222 | public static final ModelLayerLocation SKELETON = register("skeleton");
|
| 223 | public static final ModelLayerLocation SKELETON_HORSE = register("skeleton_horse");
|
| 224 | public static final ModelLayerLocation SKELETON_HORSE_BABY = register("skeleton_horse_baby");
|
| 225 | public static final ModelLayerLocation SKELETON_HORSE_SADDLE = register("skeleton_horse", "saddle");
|
| 226 | public static final ArmorModelSet<ModelLayerLocation> SKELETON_ARMOR = registerArmorSet("skeleton");
|
| 227 | public static final ModelLayerLocation SKELETON_SKULL = register("skeleton_skull");
|
| 228 | public static final ModelLayerLocation SLIME = register("slime");
|
| 229 | public static final ModelLayerLocation SLIME_OUTER = register("slime", "outer");
|
| 230 | public static final ModelLayerLocation SNIFFER = register("sniffer");
|
| 231 | public static final ModelLayerLocation SNIFFER_BABY = register("sniffer_baby");
|
| 232 | public static final ModelLayerLocation SNOW_GOLEM = register("snow_golem");
|
| 233 | public static final ModelLayerLocation SPAWNER_MINECART = register("spawner_minecart");
|
| 234 | public static final ModelLayerLocation SPIDER = register("spider");
|
| 235 | public static final ModelLayerLocation SPRUCE_BOAT = register("boat/spruce");
|
| 236 | public static final ModelLayerLocation SPRUCE_CHEST_BOAT = register("chest_boat/spruce");
|
| 237 | public static final ModelLayerLocation SQUID = register("squid");
|
| 238 | public static final ModelLayerLocation SQUID_BABY = register("squid_baby");
|
| 239 | public static final ModelLayerLocation STRAY = register("stray");
|
| 240 | public static final ArmorModelSet<ModelLayerLocation> STRAY_ARMOR = registerArmorSet("stray");
|
| 241 | public static final ModelLayerLocation STRAY_OUTER_LAYER = register("stray", "outer");
|
| 242 | public static final ModelLayerLocation STRIDER = register("strider");
|
| 243 | public static final ModelLayerLocation STRIDER_SADDLE = register("strider", "saddle");
|
| 244 | public static final ModelLayerLocation STRIDER_BABY = register("strider_baby");
|
| 245 | public static final ModelLayerLocation SULFUR_CUBE = register("sulfur_cube");
|
| 246 | public static final ModelLayerLocation SULFUR_CUBE_INNER = register("sulfur_cube", "inner");
|
| 247 | public static final ModelLayerLocation SULFUR_CUBE_SMALL = register("sulfur_cube_small");
|
| 248 | public static final ModelLayerLocation SULFUR_CUBE_SMALL_INNER = register("sulfur_cube_small", "inner");
|
| 249 | public static final ModelLayerLocation TADPOLE = register("tadpole");
|
| 250 | public static final ModelLayerLocation TNT_MINECART = register("tnt_minecart");
|
| 251 | public static final ModelLayerLocation TRADER_LLAMA = register("trader_llama");
|
| 252 | public static final ModelLayerLocation TRADER_LLAMA_BABY = register("trader_llama_baby");
|
| 253 | public static final ModelLayerLocation TRIDENT = register("trident");
|
| 254 | public static final ModelLayerLocation TROPICAL_FISH_LARGE = register("tropical_fish_large");
|
| 255 | public static final ModelLayerLocation TROPICAL_FISH_LARGE_PATTERN = register("tropical_fish_large", "pattern");
|
| 256 | public static final ModelLayerLocation TROPICAL_FISH_SMALL = register("tropical_fish_small");
|
| 257 | public static final ModelLayerLocation TROPICAL_FISH_SMALL_PATTERN = register("tropical_fish_small", "pattern");
|
| 258 | public static final ModelLayerLocation TURTLE = register("turtle");
|
| 259 | public static final ModelLayerLocation TURTLE_BABY = register("turtle_baby");
|
| 260 | public static final ModelLayerLocation UNDEAD_HORSE_ARMOR = register("undead_horse_armor");
|
| 261 | public static final ModelLayerLocation VEX = register("vex");
|
| 262 | public static final ModelLayerLocation VILLAGER = register("villager");
|
| 263 | public static final ModelLayerLocation VILLAGER_NO_HAT = register("villager_no_hat");
|
| 264 | public static final ModelLayerLocation VILLAGER_BABY = register("villager_baby");
|
| 265 | public static final ModelLayerLocation VILLAGER_BABY_NO_HAT = register("villager_baby_no_hat");
|
| 266 | public static final ModelLayerLocation VINDICATOR = register("vindicator");
|
| 267 | public static final ModelLayerLocation WANDERING_TRADER = register("wandering_trader");
|
| 268 | public static final ModelLayerLocation WARDEN = register("warden");
|
| 269 | public static final ModelLayerLocation WARDEN_BIOLUMINESCENT = register("warden", "bioluminescent");
|
| 270 | public static final ModelLayerLocation WARDEN_PULSATING_SPOTS = register("warden", "pulsating_spots");
|
| 271 | public static final ModelLayerLocation WARDEN_TENDRILS = register("warden", "tendrils");
|
| 272 | public static final ModelLayerLocation WARDEN_HEART = register("warden", "heart");
|
| 273 | public static final ModelLayerLocation WARM_COW = register("warm_cow");
|
| 274 | public static final ModelLayerLocation WARM_COW_BABY = register("warm_cow_baby");
|
| 275 | public static final ModelLayerLocation WIND_CHARGE = register("wind_charge");
|
| 276 | public static final ModelLayerLocation WITCH = register("witch");
|
| 277 | public static final ModelLayerLocation WITHER = register("wither");
|
| 278 | public static final ModelLayerLocation WITHER_ARMOR = register("wither", "armor");
|
| 279 | public static final ModelLayerLocation WITHER_SKELETON = register("wither_skeleton");
|
| 280 | public static final ArmorModelSet<ModelLayerLocation> WITHER_SKELETON_ARMOR = registerArmorSet("wither_skeleton");
|
| 281 | public static final ModelLayerLocation WITHER_SKELETON_SKULL = register("wither_skeleton_skull");
|
| 282 | public static final ModelLayerLocation WITHER_SKULL = register("wither_skull");
|
| 283 | public static final ModelLayerLocation WOLF = register("wolf");
|
| 284 | public static final ModelLayerLocation WOLF_ARMOR = register("wolf_armor");
|
| 285 | public static final ModelLayerLocation WOLF_BABY = register("wolf_baby");
|
| 286 | public static final ModelLayerLocation ZOGLIN = register("zoglin");
|
| 287 | public static final ModelLayerLocation ZOGLIN_BABY = register("zoglin_baby");
|
| 288 | public static final ModelLayerLocation ZOMBIE = register("zombie");
|
| 289 | public static final ModelLayerLocation ZOMBIE_BABY = register("zombie_baby");
|
| 290 | public static final ArmorModelSet<ModelLayerLocation> ZOMBIE_BABY_ARMOR = registerArmorSet("zombie_baby");
|
| 291 | public static final ModelLayerLocation ZOMBIE_HEAD = register("zombie_head");
|
| 292 | public static final ModelLayerLocation ZOMBIE_HORSE = register("zombie_horse");
|
| 293 | public static final ModelLayerLocation ZOMBIE_HORSE_BABY = register("zombie_horse_baby");
|
| 294 | public static final ModelLayerLocation ZOMBIE_HORSE_SADDLE = register("zombie_horse", "saddle");
|
| 295 | public static final ArmorModelSet<ModelLayerLocation> ZOMBIE_ARMOR = registerArmorSet("zombie");
|
| 296 | public static final ModelLayerLocation ZOMBIE_VILLAGER = register("zombie_villager");
|
| 297 | public static final ModelLayerLocation ZOMBIE_VILLAGER_NO_HAT = register("zombie_villager_no_hat");
|
| 298 | public static final ModelLayerLocation ZOMBIE_VILLAGER_BABY = register("zombie_villager_baby");
|
| 299 | public static final ModelLayerLocation ZOMBIE_VILLAGER_BABY_NO_HAT = register("zombie_villager_baby_no_hat");
|
| 300 | public static final ArmorModelSet<ModelLayerLocation> ZOMBIE_VILLAGER_BABY_ARMOR = registerArmorSet("zombie_villager_baby");
|
| 301 | public static final ArmorModelSet<ModelLayerLocation> ZOMBIE_VILLAGER_ARMOR = registerArmorSet("zombie_villager");
|
| 302 | public static final ModelLayerLocation ZOMBIFIED_PIGLIN = register("zombified_piglin");
|
| 303 | public static final ModelLayerLocation ZOMBIFIED_PIGLIN_BABY = register("zombified_piglin_baby");
|
| 304 | public static final ArmorModelSet<ModelLayerLocation> ZOMBIFIED_PIGLIN_BABY_ARMOR = registerArmorSet("zombified_piglin_baby");
|
| 305 | public static final ArmorModelSet<ModelLayerLocation> ZOMBIFIED_PIGLIN_ARMOR = registerArmorSet("zombified_piglin");
|
| 306 | public static final ModelLayerLocation ZOMBIE_NAUTILUS = register("zombie_nautilus");
|
| 307 |
|
| 308 | private static ModelLayerLocation register(final String model) {
|
| 309 | return register(model, "main");
|
| 310 | }
|
| 311 |
|
| 312 | private static ModelLayerLocation register(final String model, final String layer) {
|
| 313 | ModelLayerLocation result = createLocation(model, layer);
|
| 314 | if (!ALL_MODELS.add(result)) {
|
| 315 | throw new IllegalStateException("Duplicate registration for " + result);
|
| 316 | } else {
|
| 317 | return result;
|
| 318 | }
|
| 319 | }
|
| 320 |
|
| 321 | private static ModelLayerLocation createLocation(final String model, final String layer) {
|
| 322 | return new ModelLayerLocation(Identifier.withDefaultNamespace(model), layer);
|
| 323 | }
|
| 324 |
|
| 325 | private static ArmorModelSet<ModelLayerLocation> registerArmorSet(final String modelId) {
|
| 326 | return new ArmorModelSet<>(register(modelId, "helmet"), register(modelId, "chestplate"), register(modelId, "leggings"), register(modelId, "boots"));
|
| 327 | }
|
| 328 |
|
| 329 | public static Stream<ModelLayerLocation> getKnownLocations() {
|
| 330 | return ALL_MODELS.stream();
|
| 331 | }
|
| 332 | }
|
| 333 |
|