2025-11-24 22:52:51 +03:00

532 lines
44 KiB
Java

/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.google.common.collect.ImmutableMap
* com.google.common.collect.ImmutableMap$Builder
*/
package net.minecraft.client.model.geom;
import com.google.common.collect.ImmutableMap;
import java.util.List;
import java.util.Map;
import net.minecraft.client.model.AbstractEquineModel;
import net.minecraft.client.model.AllayModel;
import net.minecraft.client.model.ArmadilloModel;
import net.minecraft.client.model.ArmorStandArmorModel;
import net.minecraft.client.model.ArmorStandModel;
import net.minecraft.client.model.ArrowModel;
import net.minecraft.client.model.AxolotlModel;
import net.minecraft.client.model.BannerFlagModel;
import net.minecraft.client.model.BannerModel;
import net.minecraft.client.model.BatModel;
import net.minecraft.client.model.BeeModel;
import net.minecraft.client.model.BeeStingerModel;
import net.minecraft.client.model.BellModel;
import net.minecraft.client.model.BlazeModel;
import net.minecraft.client.model.BoatModel;
import net.minecraft.client.model.BoggedModel;
import net.minecraft.client.model.BookModel;
import net.minecraft.client.model.BreezeModel;
import net.minecraft.client.model.CamelModel;
import net.minecraft.client.model.CamelSaddleModel;
import net.minecraft.client.model.CatModel;
import net.minecraft.client.model.ChestModel;
import net.minecraft.client.model.ChickenModel;
import net.minecraft.client.model.CodModel;
import net.minecraft.client.model.ColdChickenModel;
import net.minecraft.client.model.ColdCowModel;
import net.minecraft.client.model.ColdPigModel;
import net.minecraft.client.model.CopperGolemModel;
import net.minecraft.client.model.CowModel;
import net.minecraft.client.model.CreakingModel;
import net.minecraft.client.model.CreeperModel;
import net.minecraft.client.model.DolphinModel;
import net.minecraft.client.model.DonkeyModel;
import net.minecraft.client.model.DrownedModel;
import net.minecraft.client.model.ElytraModel;
import net.minecraft.client.model.EndCrystalModel;
import net.minecraft.client.model.EndermanModel;
import net.minecraft.client.model.EndermiteModel;
import net.minecraft.client.model.EquineSaddleModel;
import net.minecraft.client.model.EvokerFangsModel;
import net.minecraft.client.model.FelineModel;
import net.minecraft.client.model.FoxModel;
import net.minecraft.client.model.FrogModel;
import net.minecraft.client.model.GhastModel;
import net.minecraft.client.model.GoatModel;
import net.minecraft.client.model.GuardianModel;
import net.minecraft.client.model.HappyGhastHarnessModel;
import net.minecraft.client.model.HappyGhastModel;
import net.minecraft.client.model.HoglinModel;
import net.minecraft.client.model.HumanoidModel;
import net.minecraft.client.model.IllagerModel;
import net.minecraft.client.model.IronGolemModel;
import net.minecraft.client.model.LavaSlimeModel;
import net.minecraft.client.model.LeashKnotModel;
import net.minecraft.client.model.LlamaModel;
import net.minecraft.client.model.LlamaSpitModel;
import net.minecraft.client.model.MinecartModel;
import net.minecraft.client.model.NautilusArmorModel;
import net.minecraft.client.model.NautilusModel;
import net.minecraft.client.model.NautilusSaddleModel;
import net.minecraft.client.model.PandaModel;
import net.minecraft.client.model.ParrotModel;
import net.minecraft.client.model.PhantomModel;
import net.minecraft.client.model.PigModel;
import net.minecraft.client.model.PiglinHeadModel;
import net.minecraft.client.model.PiglinModel;
import net.minecraft.client.model.PlayerCapeModel;
import net.minecraft.client.model.PlayerEarsModel;
import net.minecraft.client.model.PlayerModel;
import net.minecraft.client.model.PolarBearModel;
import net.minecraft.client.model.PufferfishBigModel;
import net.minecraft.client.model.PufferfishMidModel;
import net.minecraft.client.model.PufferfishSmallModel;
import net.minecraft.client.model.RabbitModel;
import net.minecraft.client.model.RaftModel;
import net.minecraft.client.model.RavagerModel;
import net.minecraft.client.model.SalmonModel;
import net.minecraft.client.model.SheepFurModel;
import net.minecraft.client.model.SheepModel;
import net.minecraft.client.model.ShieldModel;
import net.minecraft.client.model.ShulkerBulletModel;
import net.minecraft.client.model.ShulkerModel;
import net.minecraft.client.model.SilverfishModel;
import net.minecraft.client.model.SkeletonModel;
import net.minecraft.client.model.SkullModel;
import net.minecraft.client.model.SlimeModel;
import net.minecraft.client.model.SnifferModel;
import net.minecraft.client.model.SnowGolemModel;
import net.minecraft.client.model.SpiderModel;
import net.minecraft.client.model.SpinAttackEffectModel;
import net.minecraft.client.model.SquidModel;
import net.minecraft.client.model.StriderModel;
import net.minecraft.client.model.TadpoleModel;
import net.minecraft.client.model.TridentModel;
import net.minecraft.client.model.TropicalFishModelA;
import net.minecraft.client.model.TropicalFishModelB;
import net.minecraft.client.model.TurtleModel;
import net.minecraft.client.model.VexModel;
import net.minecraft.client.model.VillagerModel;
import net.minecraft.client.model.WardenModel;
import net.minecraft.client.model.WarmCowModel;
import net.minecraft.client.model.WindChargeModel;
import net.minecraft.client.model.WitchModel;
import net.minecraft.client.model.WitherBossModel;
import net.minecraft.client.model.WolfModel;
import net.minecraft.client.model.ZombieNautilusCoralModel;
import net.minecraft.client.model.ZombieVillagerModel;
import net.minecraft.client.model.dragon.DragonHeadModel;
import net.minecraft.client.model.dragon.EnderDragonModel;
import net.minecraft.client.model.geom.ModelLayerLocation;
import net.minecraft.client.model.geom.ModelLayers;
import net.minecraft.client.model.geom.builders.CubeDeformation;
import net.minecraft.client.model.geom.builders.LayerDefinition;
import net.minecraft.client.model.geom.builders.MeshTransformer;
import net.minecraft.client.renderer.blockentity.BedRenderer;
import net.minecraft.client.renderer.blockentity.ConduitRenderer;
import net.minecraft.client.renderer.blockentity.DecoratedPotRenderer;
import net.minecraft.client.renderer.blockentity.HangingSignRenderer;
import net.minecraft.client.renderer.blockentity.SignRenderer;
import net.minecraft.client.renderer.entity.ArmorModelSet;
import net.minecraft.client.renderer.entity.WitherSkullRenderer;
import net.minecraft.world.level.block.state.properties.WoodType;
public class LayerDefinitions {
private static final CubeDeformation FISH_PATTERN_DEFORMATION = new CubeDeformation(0.008f);
private static final CubeDeformation OUTER_ARMOR_DEFORMATION = new CubeDeformation(1.0f);
private static final CubeDeformation INNER_ARMOR_DEFORMATION = new CubeDeformation(0.5f);
public static Map<ModelLayerLocation, LayerDefinition> createRoots() {
ImmutableMap.Builder result = ImmutableMap.builder();
LayerDefinition humanoidBodyLayer = LayerDefinition.create(HumanoidModel.createMesh(CubeDeformation.NONE, 0.0f), 64, 64);
ArmorModelSet<LayerDefinition> humanoidArmor = HumanoidModel.createArmorMeshSet(INNER_ARMOR_DEFORMATION, OUTER_ARMOR_DEFORMATION).map(mesh -> LayerDefinition.create(mesh, 64, 32));
ArmorModelSet<LayerDefinition> humanoidBabyArmor = humanoidArmor.map(layer -> layer.apply(HumanoidModel.BABY_TRANSFORMER));
ArmorModelSet<LayerDefinition> playerArmor = PlayerModel.createArmorMeshSet(INNER_ARMOR_DEFORMATION, OUTER_ARMOR_DEFORMATION).map(mesh -> LayerDefinition.create(mesh, 64, 32));
ArmorModelSet<LayerDefinition> piglinArmor = PiglinModel.createArmorMeshSet(INNER_ARMOR_DEFORMATION, new CubeDeformation(1.02f)).map(mesh -> LayerDefinition.create(mesh, 64, 32));
ArmorModelSet<LayerDefinition> piglinBabyArmor = piglinArmor.map(layer -> layer.apply(HumanoidModel.BABY_TRANSFORMER));
LayerDefinition minecartBodyLayer = MinecartModel.createBodyLayer();
LayerDefinition mobHeadLayer = SkullModel.createMobHeadLayer();
LayerDefinition horseBodyLayer = LayerDefinition.create(AbstractEquineModel.createBodyMesh(CubeDeformation.NONE), 64, 64);
LayerDefinition horseBabyLayer = LayerDefinition.create(AbstractEquineModel.createBabyMesh(CubeDeformation.NONE), 64, 64);
LayerDefinition horseSaddleLayer = EquineSaddleModel.createSaddleLayer(false);
LayerDefinition horseBabySaddleLayer = EquineSaddleModel.createSaddleLayer(true);
MeshTransformer villagerLikeScale = MeshTransformer.scaling(0.9375f);
LayerDefinition illagerBodyLayer = IllagerModel.createBodyLayer().apply(villagerLikeScale);
LayerDefinition axolotlBodyLayer = AxolotlModel.createBodyLayer();
LayerDefinition beeBodyLayer = BeeModel.createBodyLayer();
LayerDefinition cowBodyLayer = CowModel.createBodyLayer();
LayerDefinition coldChickenBodyLayer = ColdChickenModel.createBodyLayer();
LayerDefinition coldCowBodyLayer = ColdCowModel.createBodyLayer();
LayerDefinition coldPigBodyLayer = ColdPigModel.createBodyLayer(CubeDeformation.NONE);
LayerDefinition elytraLayer = ElytraModel.createLayer();
LayerDefinition felineBodyLayer = LayerDefinition.create(FelineModel.createBodyMesh(CubeDeformation.NONE), 64, 32);
LayerDefinition felineBabyBodyLayer = felineBodyLayer.apply(FelineModel.BABY_TRANSFORMER);
LayerDefinition felineCollarLayer = LayerDefinition.create(FelineModel.createBodyMesh(new CubeDeformation(0.01f)), 64, 32);
LayerDefinition piglinLayer = LayerDefinition.create(PiglinModel.createMesh(CubeDeformation.NONE), 64, 64);
LayerDefinition piglinHeadLayer = LayerDefinition.create(PiglinHeadModel.createHeadModel(), 64, 64);
LayerDefinition humanoidHeadLayer = SkullModel.createHumanoidHeadLayer();
LayerDefinition llamaBodyLayer = LlamaModel.createBodyLayer(CubeDeformation.NONE);
LayerDefinition llamaDecorLayer = LlamaModel.createBodyLayer(new CubeDeformation(0.5f));
LayerDefinition striderLayer = StriderModel.createBodyLayer();
LayerDefinition hoglinLayer = HoglinModel.createBodyLayer();
LayerDefinition hoglinBabyLayer = HoglinModel.createBabyLayer();
LayerDefinition skeletonBodyLayer = SkeletonModel.createBodyLayer();
LayerDefinition villagerBodyLayer = LayerDefinition.create(VillagerModel.createBodyModel(), 64, 64).apply(villagerLikeScale);
LayerDefinition villagerNoHatLayer = LayerDefinition.create(VillagerModel.createNoHatModel(), 64, 64).apply(villagerLikeScale);
LayerDefinition spiderBodyLayer = SpiderModel.createSpiderBodyLayer();
LayerDefinition armadilloBodyLayer = ArmadilloModel.createBodyLayer();
LayerDefinition camelBodyLayer = CamelModel.createBodyLayer();
LayerDefinition camelSaddleLayer = CamelSaddleModel.createSaddleLayer();
LayerDefinition chickenBodyLayer = ChickenModel.createBodyLayer();
LayerDefinition goatBodyLayer = GoatModel.createBodyLayer();
LayerDefinition pandaBodyLayer = PandaModel.createBodyLayer();
LayerDefinition pigBodyLayer = PigModel.createBodyLayer(CubeDeformation.NONE);
LayerDefinition pigSaddleLayer = PigModel.createBodyLayer(new CubeDeformation(0.5f));
LayerDefinition sheepBodyLayer = SheepModel.createBodyLayer();
LayerDefinition sheepWoolLayer = SheepFurModel.createFurLayer();
LayerDefinition snifferBodyLayer = SnifferModel.createBodyLayer();
LayerDefinition turtleBodyLayer = TurtleModel.createBodyLayer();
LayerDefinition warmCowBodyLayer = WarmCowModel.createBodyLayer();
LayerDefinition wolfBodyLayer = LayerDefinition.create(WolfModel.createMeshDefinition(CubeDeformation.NONE), 64, 32);
LayerDefinition wolfArmorLayer = LayerDefinition.create(WolfModel.createMeshDefinition(new CubeDeformation(0.2f)), 64, 32);
LayerDefinition zombieVillagerBodyLayer = ZombieVillagerModel.createBodyLayer();
LayerDefinition zombieVillagerNoHatLayer = ZombieVillagerModel.createNoHatLayer();
LayerDefinition armorStandBodyLayer = ArmorStandModel.createBodyLayer();
ArmorModelSet<LayerDefinition> armorStandArmor = ArmorStandArmorModel.createArmorLayerSet(INNER_ARMOR_DEFORMATION, OUTER_ARMOR_DEFORMATION);
LayerDefinition drownedBodyLayer = DrownedModel.createBodyLayer(CubeDeformation.NONE);
LayerDefinition drownedOuterLayer = DrownedModel.createBodyLayer(new CubeDeformation(0.25f));
LayerDefinition squidBodyLayer = SquidModel.createBodyLayer();
LayerDefinition dolphinBodyLayer = DolphinModel.createBodyLayer();
LayerDefinition salmonBodyLayer = SalmonModel.createBodyLayer();
LayerDefinition nautilusSaddleLayer = NautilusSaddleModel.createSaddleLayer();
result.put((Object)ModelLayers.ALLAY, (Object)AllayModel.createBodyLayer());
result.put((Object)ModelLayers.ARMADILLO, (Object)armadilloBodyLayer);
result.put((Object)ModelLayers.ARMADILLO_BABY, (Object)armadilloBodyLayer.apply(ArmadilloModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.ARMOR_STAND, (Object)armorStandBodyLayer);
ModelLayers.ARMOR_STAND_ARMOR.putFrom(armorStandArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ARMOR_STAND_SMALL, (Object)armorStandBodyLayer.apply(HumanoidModel.BABY_TRANSFORMER));
ModelLayers.ARMOR_STAND_SMALL_ARMOR.putFrom(armorStandArmor.map(layer -> layer.apply(HumanoidModel.BABY_TRANSFORMER)), (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ARROW, (Object)ArrowModel.createBodyLayer());
result.put((Object)ModelLayers.AXOLOTL, (Object)axolotlBodyLayer);
result.put((Object)ModelLayers.AXOLOTL_BABY, (Object)axolotlBodyLayer.apply(AxolotlModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.STANDING_BANNER, (Object)BannerModel.createBodyLayer(true));
result.put((Object)ModelLayers.WALL_BANNER, (Object)BannerModel.createBodyLayer(false));
result.put((Object)ModelLayers.STANDING_BANNER_FLAG, (Object)BannerFlagModel.createFlagLayer(true));
result.put((Object)ModelLayers.WALL_BANNER_FLAG, (Object)BannerFlagModel.createFlagLayer(false));
result.put((Object)ModelLayers.BAT, (Object)BatModel.createBodyLayer());
result.put((Object)ModelLayers.BED_FOOT, (Object)BedRenderer.createFootLayer());
result.put((Object)ModelLayers.BED_HEAD, (Object)BedRenderer.createHeadLayer());
result.put((Object)ModelLayers.BEE, (Object)beeBodyLayer);
result.put((Object)ModelLayers.BEE_BABY, (Object)beeBodyLayer.apply(BeeModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.BEE_STINGER, (Object)BeeStingerModel.createBodyLayer());
result.put((Object)ModelLayers.BELL, (Object)BellModel.createBodyLayer());
result.put((Object)ModelLayers.BLAZE, (Object)BlazeModel.createBodyLayer());
result.put((Object)ModelLayers.BOAT_WATER_PATCH, (Object)BoatModel.createWaterPatch());
result.put((Object)ModelLayers.BOGGED, (Object)BoggedModel.createBodyLayer());
ModelLayers.BOGGED_ARMOR.putFrom(humanoidArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.BOGGED_OUTER_LAYER, (Object)LayerDefinition.create(HumanoidModel.createMesh(new CubeDeformation(0.2f), 0.0f), 64, 32));
result.put((Object)ModelLayers.BOOK, (Object)BookModel.createBodyLayer());
result.put((Object)ModelLayers.BREEZE, (Object)BreezeModel.createBodyLayer());
result.put((Object)ModelLayers.BREEZE_WIND, (Object)BreezeModel.createWindLayer());
result.put((Object)ModelLayers.BREEZE_EYES, (Object)BreezeModel.createEyesLayer());
result.put((Object)ModelLayers.CAT, (Object)felineBodyLayer.apply(CatModel.CAT_TRANSFORMER));
result.put((Object)ModelLayers.CAT_BABY, (Object)felineBabyBodyLayer.apply(CatModel.CAT_TRANSFORMER));
result.put((Object)ModelLayers.CAT_COLLAR, (Object)felineCollarLayer.apply(CatModel.CAT_TRANSFORMER));
result.put((Object)ModelLayers.CAT_BABY_COLLAR, (Object)felineCollarLayer.apply(FelineModel.BABY_TRANSFORMER).apply(CatModel.CAT_TRANSFORMER));
result.put((Object)ModelLayers.CAMEL, (Object)camelBodyLayer);
result.put((Object)ModelLayers.CAMEL_BABY, (Object)camelBodyLayer.apply(CamelModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.CAMEL_SADDLE, (Object)camelSaddleLayer);
result.put((Object)ModelLayers.CAMEL_BABY_SADDLE, (Object)camelSaddleLayer.apply(CamelModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.CAMEL_HUSK_SADDLE, (Object)camelSaddleLayer);
result.put((Object)ModelLayers.CAMEL_HUSK_BABY_SADDLE, (Object)camelSaddleLayer.apply(CamelModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.CAVE_SPIDER, (Object)spiderBodyLayer.apply(MeshTransformer.scaling(0.7f)));
result.put((Object)ModelLayers.CHEST, (Object)ChestModel.createSingleBodyLayer());
result.put((Object)ModelLayers.CHEST_MINECART, (Object)minecartBodyLayer);
result.put((Object)ModelLayers.CHICKEN, (Object)chickenBodyLayer);
result.put((Object)ModelLayers.CHICKEN_BABY, (Object)chickenBodyLayer.apply(ChickenModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.COD, (Object)CodModel.createBodyLayer());
result.put((Object)ModelLayers.COLD_CHICKEN, (Object)coldChickenBodyLayer);
result.put((Object)ModelLayers.COLD_CHICKEN_BABY, (Object)coldChickenBodyLayer.apply(ChickenModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.COLD_COW, (Object)coldCowBodyLayer);
result.put((Object)ModelLayers.COLD_COW_BABY, (Object)coldCowBodyLayer.apply(CowModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.COLD_PIG, (Object)coldPigBodyLayer);
result.put((Object)ModelLayers.COLD_PIG_BABY, (Object)coldPigBodyLayer.apply(PigModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.COMMAND_BLOCK_MINECART, (Object)minecartBodyLayer);
result.put((Object)ModelLayers.CONDUIT_EYE, (Object)ConduitRenderer.createEyeLayer());
result.put((Object)ModelLayers.CONDUIT_WIND, (Object)ConduitRenderer.createWindLayer());
result.put((Object)ModelLayers.CONDUIT_SHELL, (Object)ConduitRenderer.createShellLayer());
result.put((Object)ModelLayers.CONDUIT_CAGE, (Object)ConduitRenderer.createCageLayer());
result.put((Object)ModelLayers.COPPER_GOLEM, (Object)CopperGolemModel.createBodyLayer());
result.put((Object)ModelLayers.COPPER_GOLEM_EYES, (Object)CopperGolemModel.createEyesLayer());
result.put((Object)ModelLayers.COPPER_GOLEM_RUNNING, (Object)CopperGolemModel.createRunningPoseBodyLayer());
result.put((Object)ModelLayers.COPPER_GOLEM_SITTING, (Object)CopperGolemModel.createSittingPoseBodyLayer());
result.put((Object)ModelLayers.COPPER_GOLEM_STAR, (Object)CopperGolemModel.createStarPoseBodyLayer());
result.put((Object)ModelLayers.COW, (Object)cowBodyLayer);
result.put((Object)ModelLayers.COW_BABY, (Object)cowBodyLayer.apply(CowModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.CREAKING, (Object)CreakingModel.createBodyLayer());
result.put((Object)ModelLayers.CREAKING_EYES, (Object)CreakingModel.createEyesLayer());
result.put((Object)ModelLayers.CREEPER, (Object)CreeperModel.createBodyLayer(CubeDeformation.NONE));
result.put((Object)ModelLayers.CREEPER_ARMOR, (Object)CreeperModel.createBodyLayer(new CubeDeformation(2.0f)));
result.put((Object)ModelLayers.CREEPER_HEAD, (Object)mobHeadLayer);
result.put((Object)ModelLayers.DECORATED_POT_BASE, (Object)DecoratedPotRenderer.createBaseLayer());
result.put((Object)ModelLayers.DECORATED_POT_SIDES, (Object)DecoratedPotRenderer.createSidesLayer());
result.put((Object)ModelLayers.DOLPHIN, (Object)dolphinBodyLayer);
result.put((Object)ModelLayers.DOLPHIN_BABY, (Object)dolphinBodyLayer.apply(DolphinModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.DONKEY, (Object)DonkeyModel.createBodyLayer(0.87f));
result.put((Object)ModelLayers.DONKEY_BABY, (Object)DonkeyModel.createBabyLayer(0.87f));
result.put((Object)ModelLayers.DONKEY_SADDLE, (Object)DonkeyModel.createSaddleLayer(0.87f, false));
result.put((Object)ModelLayers.DONKEY_BABY_SADDLE, (Object)DonkeyModel.createSaddleLayer(0.87f, true));
result.put((Object)ModelLayers.DOUBLE_CHEST_LEFT, (Object)ChestModel.createDoubleBodyLeftLayer());
result.put((Object)ModelLayers.DOUBLE_CHEST_RIGHT, (Object)ChestModel.createDoubleBodyRightLayer());
result.put((Object)ModelLayers.DRAGON_SKULL, (Object)DragonHeadModel.createHeadLayer());
result.put((Object)ModelLayers.DROWNED, (Object)drownedBodyLayer);
ModelLayers.DROWNED_ARMOR.putFrom(humanoidArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.DROWNED_OUTER_LAYER, (Object)drownedOuterLayer);
result.put((Object)ModelLayers.DROWNED_BABY, (Object)drownedBodyLayer.apply(HumanoidModel.BABY_TRANSFORMER));
ModelLayers.DROWNED_BABY_ARMOR.putFrom(humanoidBabyArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.DROWNED_BABY_OUTER_LAYER, (Object)drownedOuterLayer.apply(HumanoidModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.ELDER_GUARDIAN, (Object)GuardianModel.createElderGuardianLayer());
result.put((Object)ModelLayers.ELYTRA, (Object)elytraLayer);
result.put((Object)ModelLayers.ELYTRA_BABY, (Object)elytraLayer.apply(ElytraModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.ENDERMAN, (Object)EndermanModel.createBodyLayer());
result.put((Object)ModelLayers.ENDERMITE, (Object)EndermiteModel.createBodyLayer());
result.put((Object)ModelLayers.ENDER_DRAGON, (Object)EnderDragonModel.createBodyLayer());
result.put((Object)ModelLayers.END_CRYSTAL, (Object)EndCrystalModel.createBodyLayer());
result.put((Object)ModelLayers.EVOKER, (Object)illagerBodyLayer);
result.put((Object)ModelLayers.EVOKER_FANGS, (Object)EvokerFangsModel.createBodyLayer());
result.put((Object)ModelLayers.FOX, (Object)FoxModel.createBodyLayer());
result.put((Object)ModelLayers.FOX_BABY, (Object)FoxModel.createBodyLayer().apply(FoxModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.FROG, (Object)FrogModel.createBodyLayer());
result.put((Object)ModelLayers.FURNACE_MINECART, (Object)minecartBodyLayer);
result.put((Object)ModelLayers.GHAST, (Object)GhastModel.createBodyLayer());
MeshTransformer giantScale = MeshTransformer.scaling(6.0f);
result.put((Object)ModelLayers.GIANT, (Object)humanoidBodyLayer.apply(giantScale));
ModelLayers.GIANT_ARMOR.putFrom(humanoidArmor.map(layer -> layer.apply(giantScale)), (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.GLOW_SQUID, (Object)squidBodyLayer);
result.put((Object)ModelLayers.GLOW_SQUID_BABY, (Object)squidBodyLayer.apply(SquidModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.GOAT, (Object)goatBodyLayer);
result.put((Object)ModelLayers.GOAT_BABY, (Object)goatBodyLayer.apply(GoatModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.GUARDIAN, (Object)GuardianModel.createBodyLayer());
result.put((Object)ModelLayers.HAPPY_GHAST, (Object)HappyGhastModel.createBodyLayer(false, CubeDeformation.NONE));
result.put((Object)ModelLayers.HAPPY_GHAST_BABY, (Object)HappyGhastModel.createBodyLayer(true, CubeDeformation.NONE).apply(HappyGhastModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.HAPPY_GHAST_HARNESS, (Object)HappyGhastHarnessModel.createHarnessLayer(false));
result.put((Object)ModelLayers.HAPPY_GHAST_BABY_HARNESS, (Object)HappyGhastHarnessModel.createHarnessLayer(true).apply(HappyGhastModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.HAPPY_GHAST_ROPES, (Object)HappyGhastModel.createBodyLayer(false, new CubeDeformation(0.2f)));
result.put((Object)ModelLayers.HAPPY_GHAST_BABY_ROPES, (Object)HappyGhastModel.createBodyLayer(true, new CubeDeformation(0.2f)).apply(HappyGhastModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.HOGLIN, (Object)hoglinLayer);
result.put((Object)ModelLayers.HOGLIN_BABY, (Object)hoglinBabyLayer);
result.put((Object)ModelLayers.HOPPER_MINECART, (Object)minecartBodyLayer);
MeshTransformer livingHorseScale = MeshTransformer.scaling(1.1f);
result.put((Object)ModelLayers.HORSE, (Object)horseBodyLayer.apply(livingHorseScale));
result.put((Object)ModelLayers.HORSE_BABY, (Object)horseBabyLayer.apply(livingHorseScale));
result.put((Object)ModelLayers.HORSE_ARMOR, (Object)LayerDefinition.create(AbstractEquineModel.createBodyMesh(new CubeDeformation(0.1f)), 64, 64).apply(livingHorseScale));
result.put((Object)ModelLayers.HORSE_BABY_ARMOR, (Object)LayerDefinition.create(AbstractEquineModel.createBabyMesh(new CubeDeformation(0.1f)), 64, 64).apply(livingHorseScale));
result.put((Object)ModelLayers.HORSE_SADDLE, (Object)horseSaddleLayer.apply(livingHorseScale));
result.put((Object)ModelLayers.HORSE_BABY_SADDLE, (Object)horseBabySaddleLayer.apply(livingHorseScale));
MeshTransformer huskScale = MeshTransformer.scaling(1.0625f);
result.put((Object)ModelLayers.HUSK, (Object)humanoidBodyLayer.apply(huskScale));
ModelLayers.HUSK_ARMOR.putFrom(humanoidArmor.map(layer -> layer.apply(huskScale)), (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.HUSK_BABY, (Object)humanoidBodyLayer.apply(HumanoidModel.BABY_TRANSFORMER).apply(huskScale));
ModelLayers.HUSK_BABY_ARMOR.putFrom(humanoidBabyArmor.map(layer -> layer.apply(huskScale)), (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ILLUSIONER, (Object)illagerBodyLayer);
result.put((Object)ModelLayers.IRON_GOLEM, (Object)IronGolemModel.createBodyLayer());
result.put((Object)ModelLayers.LEASH_KNOT, (Object)LeashKnotModel.createBodyLayer());
result.put((Object)ModelLayers.LLAMA, (Object)llamaBodyLayer);
result.put((Object)ModelLayers.LLAMA_BABY, (Object)llamaBodyLayer.apply(LlamaModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.LLAMA_DECOR, (Object)llamaDecorLayer);
result.put((Object)ModelLayers.LLAMA_BABY_DECOR, (Object)llamaDecorLayer.apply(LlamaModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.LLAMA_SPIT, (Object)LlamaSpitModel.createBodyLayer());
result.put((Object)ModelLayers.MAGMA_CUBE, (Object)LavaSlimeModel.createBodyLayer());
result.put((Object)ModelLayers.MINECART, (Object)minecartBodyLayer);
result.put((Object)ModelLayers.MOOSHROOM, (Object)cowBodyLayer);
result.put((Object)ModelLayers.MOOSHROOM_BABY, (Object)cowBodyLayer.apply(CowModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.MULE, (Object)DonkeyModel.createBodyLayer(0.92f));
result.put((Object)ModelLayers.MULE_BABY, (Object)DonkeyModel.createBabyLayer(0.92f));
result.put((Object)ModelLayers.MULE_SADDLE, (Object)DonkeyModel.createSaddleLayer(0.92f, false));
result.put((Object)ModelLayers.MULE_BABY_SADDLE, (Object)DonkeyModel.createSaddleLayer(0.92f, true));
result.put((Object)ModelLayers.NAUTILUS, (Object)NautilusModel.createBodyLayer());
result.put((Object)ModelLayers.NAUTILUS_BABY, (Object)NautilusModel.createBabyBodyLayer());
result.put((Object)ModelLayers.NAUTILUS_SADDLE, (Object)nautilusSaddleLayer);
result.put((Object)ModelLayers.NAUTILUS_ARMOR, (Object)NautilusArmorModel.createBodyLayer());
result.put((Object)ModelLayers.ZOMBIE_NAUTILUS, (Object)NautilusModel.createBodyLayer());
result.put((Object)ModelLayers.ZOMBIE_NAUTILUS_CORAL, (Object)ZombieNautilusCoralModel.createBodyLayer());
result.put((Object)ModelLayers.OCELOT, (Object)felineBodyLayer);
result.put((Object)ModelLayers.OCELOT_BABY, (Object)felineBabyBodyLayer);
result.put((Object)ModelLayers.PANDA, (Object)pandaBodyLayer);
result.put((Object)ModelLayers.PANDA_BABY, (Object)pandaBodyLayer.apply(PandaModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.PARCHED, (Object)SkeletonModel.createSingleModelDualBodyLayer());
ModelLayers.PARCHED_ARMOR.putFrom(humanoidArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.PARCHED_OUTER_LAYER, (Object)LayerDefinition.create(HumanoidModel.createMesh(new CubeDeformation(0.25f), 0.0f), 64, 32));
result.put((Object)ModelLayers.PARROT, (Object)ParrotModel.createBodyLayer());
result.put((Object)ModelLayers.PHANTOM, (Object)PhantomModel.createBodyLayer());
result.put((Object)ModelLayers.PIG, (Object)pigBodyLayer);
result.put((Object)ModelLayers.PIG_BABY, (Object)pigBodyLayer.apply(PigModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.PIG_SADDLE, (Object)pigSaddleLayer);
result.put((Object)ModelLayers.PIG_BABY_SADDLE, (Object)pigSaddleLayer.apply(PigModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.PIGLIN, (Object)piglinLayer);
ModelLayers.PIGLIN_ARMOR.putFrom(piglinArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.PIGLIN_BRUTE, (Object)piglinLayer);
ModelLayers.PIGLIN_BRUTE_ARMOR.putFrom(piglinArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.PIGLIN_BABY, (Object)piglinLayer.apply(HumanoidModel.BABY_TRANSFORMER));
ModelLayers.PIGLIN_BABY_ARMOR.putFrom(piglinBabyArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.PIGLIN_HEAD, (Object)piglinHeadLayer);
result.put((Object)ModelLayers.PILLAGER, (Object)illagerBodyLayer);
result.put((Object)ModelLayers.PLAYER, (Object)LayerDefinition.create(PlayerModel.createMesh(CubeDeformation.NONE, false), 64, 64));
result.put((Object)ModelLayers.PLAYER_EARS, (Object)PlayerEarsModel.createEarsLayer());
result.put((Object)ModelLayers.PLAYER_CAPE, (Object)PlayerCapeModel.createCapeLayer());
result.put((Object)ModelLayers.PLAYER_HEAD, (Object)humanoidHeadLayer);
ModelLayers.PLAYER_ARMOR.putFrom(playerArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.PLAYER_SLIM, (Object)LayerDefinition.create(PlayerModel.createMesh(CubeDeformation.NONE, true), 64, 64));
ModelLayers.PLAYER_SLIM_ARMOR.putFrom(playerArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.PLAYER_SPIN_ATTACK, (Object)SpinAttackEffectModel.createLayer());
result.put((Object)ModelLayers.POLAR_BEAR, (Object)PolarBearModel.createBodyLayer(false));
result.put((Object)ModelLayers.POLAR_BEAR_BABY, (Object)PolarBearModel.createBodyLayer(true));
result.put((Object)ModelLayers.PUFFERFISH_BIG, (Object)PufferfishBigModel.createBodyLayer());
result.put((Object)ModelLayers.PUFFERFISH_MEDIUM, (Object)PufferfishMidModel.createBodyLayer());
result.put((Object)ModelLayers.PUFFERFISH_SMALL, (Object)PufferfishSmallModel.createBodyLayer());
result.put((Object)ModelLayers.RABBIT, (Object)RabbitModel.createBodyLayer(false));
result.put((Object)ModelLayers.RABBIT_BABY, (Object)RabbitModel.createBodyLayer(true));
result.put((Object)ModelLayers.RAVAGER, (Object)RavagerModel.createBodyLayer());
result.put((Object)ModelLayers.SALMON, (Object)salmonBodyLayer);
result.put((Object)ModelLayers.SALMON_SMALL, (Object)salmonBodyLayer.apply(SalmonModel.SMALL_TRANSFORMER));
result.put((Object)ModelLayers.SALMON_LARGE, (Object)salmonBodyLayer.apply(SalmonModel.LARGE_TRANSFORMER));
result.put((Object)ModelLayers.SHEEP, (Object)sheepBodyLayer);
result.put((Object)ModelLayers.SHEEP_BABY, (Object)sheepBodyLayer.apply(SheepModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.SHEEP_WOOL, (Object)sheepWoolLayer);
result.put((Object)ModelLayers.SHEEP_BABY_WOOL, (Object)sheepWoolLayer.apply(SheepModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.SHEEP_WOOL_UNDERCOAT, (Object)sheepBodyLayer);
result.put((Object)ModelLayers.SHEEP_BABY_WOOL_UNDERCOAT, (Object)sheepBodyLayer.apply(SheepModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.SHIELD, (Object)ShieldModel.createLayer());
result.put((Object)ModelLayers.SHULKER, (Object)ShulkerModel.createBodyLayer());
result.put((Object)ModelLayers.SHULKER_BOX, (Object)ShulkerModel.createBoxLayer());
result.put((Object)ModelLayers.SHULKER_BULLET, (Object)ShulkerBulletModel.createBodyLayer());
result.put((Object)ModelLayers.SILVERFISH, (Object)SilverfishModel.createBodyLayer());
result.put((Object)ModelLayers.SKELETON, (Object)skeletonBodyLayer);
ModelLayers.SKELETON_ARMOR.putFrom(humanoidArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.SKELETON_HORSE, (Object)horseBodyLayer);
result.put((Object)ModelLayers.SKELETON_HORSE_BABY, (Object)horseBabyLayer);
result.put((Object)ModelLayers.SKELETON_HORSE_SADDLE, (Object)horseSaddleLayer);
result.put((Object)ModelLayers.SKELETON_HORSE_BABY_SADDLE, (Object)horseBabySaddleLayer);
result.put((Object)ModelLayers.SKELETON_SKULL, (Object)mobHeadLayer);
result.put((Object)ModelLayers.SLIME, (Object)SlimeModel.createInnerBodyLayer());
result.put((Object)ModelLayers.SLIME_OUTER, (Object)SlimeModel.createOuterBodyLayer());
result.put((Object)ModelLayers.SNIFFER, (Object)snifferBodyLayer);
result.put((Object)ModelLayers.SNIFFER_BABY, (Object)snifferBodyLayer.apply(SnifferModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.SNOW_GOLEM, (Object)SnowGolemModel.createBodyLayer());
result.put((Object)ModelLayers.SPAWNER_MINECART, (Object)minecartBodyLayer);
result.put((Object)ModelLayers.SPIDER, (Object)spiderBodyLayer);
result.put((Object)ModelLayers.SQUID, (Object)squidBodyLayer);
result.put((Object)ModelLayers.SQUID_BABY, (Object)squidBodyLayer.apply(SquidModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.STRAY, (Object)skeletonBodyLayer);
ModelLayers.STRAY_ARMOR.putFrom(humanoidArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.STRAY_OUTER_LAYER, (Object)LayerDefinition.create(HumanoidModel.createMesh(new CubeDeformation(0.25f), 0.0f), 64, 32));
result.put((Object)ModelLayers.STRIDER, (Object)striderLayer);
result.put((Object)ModelLayers.STRIDER_SADDLE, (Object)striderLayer);
result.put((Object)ModelLayers.STRIDER_BABY, (Object)striderLayer.apply(StriderModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.STRIDER_BABY_SADDLE, (Object)striderLayer.apply(StriderModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.TADPOLE, (Object)TadpoleModel.createBodyLayer());
result.put((Object)ModelLayers.TNT_MINECART, (Object)minecartBodyLayer);
result.put((Object)ModelLayers.TRADER_LLAMA, (Object)llamaBodyLayer);
result.put((Object)ModelLayers.TRADER_LLAMA_BABY, (Object)llamaBodyLayer.apply(LlamaModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.TRIDENT, (Object)TridentModel.createLayer());
result.put((Object)ModelLayers.TROPICAL_FISH_LARGE, (Object)TropicalFishModelB.createBodyLayer(CubeDeformation.NONE));
result.put((Object)ModelLayers.TROPICAL_FISH_LARGE_PATTERN, (Object)TropicalFishModelB.createBodyLayer(FISH_PATTERN_DEFORMATION));
result.put((Object)ModelLayers.TROPICAL_FISH_SMALL, (Object)TropicalFishModelA.createBodyLayer(CubeDeformation.NONE));
result.put((Object)ModelLayers.TROPICAL_FISH_SMALL_PATTERN, (Object)TropicalFishModelA.createBodyLayer(FISH_PATTERN_DEFORMATION));
result.put((Object)ModelLayers.TURTLE, (Object)turtleBodyLayer);
result.put((Object)ModelLayers.TURTLE_BABY, (Object)turtleBodyLayer.apply(TurtleModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.UNDEAD_HORSE_ARMOR, (Object)LayerDefinition.create(AbstractEquineModel.createBodyMesh(new CubeDeformation(0.1f)), 64, 64));
result.put((Object)ModelLayers.UNDEAD_HORSE_BABY_ARMOR, (Object)LayerDefinition.create(AbstractEquineModel.createBabyMesh(new CubeDeformation(0.1f)), 64, 64));
result.put((Object)ModelLayers.VEX, (Object)VexModel.createBodyLayer());
result.put((Object)ModelLayers.VILLAGER, (Object)villagerBodyLayer);
result.put((Object)ModelLayers.VILLAGER_NO_HAT, (Object)villagerNoHatLayer);
result.put((Object)ModelLayers.VILLAGER_BABY, (Object)villagerBodyLayer.apply(VillagerModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.VILLAGER_BABY_NO_HAT, (Object)villagerNoHatLayer.apply(VillagerModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.VINDICATOR, (Object)illagerBodyLayer);
result.put((Object)ModelLayers.WARDEN, (Object)WardenModel.createBodyLayer());
result.put((Object)ModelLayers.WARDEN_TENDRILS, (Object)WardenModel.createTendrilsLayer());
result.put((Object)ModelLayers.WARDEN_HEART, (Object)WardenModel.createHeartLayer());
result.put((Object)ModelLayers.WARDEN_BIOLUMINESCENT, (Object)WardenModel.createBioluminescentLayer());
result.put((Object)ModelLayers.WARDEN_PULSATING_SPOTS, (Object)WardenModel.createPulsatingSpotsLayer());
result.put((Object)ModelLayers.WARM_COW, (Object)warmCowBodyLayer);
result.put((Object)ModelLayers.WARM_COW_BABY, (Object)warmCowBodyLayer.apply(CowModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.WANDERING_TRADER, (Object)villagerBodyLayer);
result.put((Object)ModelLayers.WIND_CHARGE, (Object)WindChargeModel.createBodyLayer());
result.put((Object)ModelLayers.WITCH, (Object)WitchModel.createBodyLayer().apply(villagerLikeScale));
result.put((Object)ModelLayers.WITHER, (Object)WitherBossModel.createBodyLayer(CubeDeformation.NONE));
result.put((Object)ModelLayers.WITHER_ARMOR, (Object)WitherBossModel.createBodyLayer(INNER_ARMOR_DEFORMATION));
result.put((Object)ModelLayers.WITHER_SKULL, (Object)WitherSkullRenderer.createSkullLayer());
MeshTransformer witherSkeletonScale = MeshTransformer.scaling(1.2f);
result.put((Object)ModelLayers.WITHER_SKELETON, (Object)skeletonBodyLayer.apply(witherSkeletonScale));
ModelLayers.WITHER_SKELETON_ARMOR.putFrom(humanoidArmor.map(layer -> layer.apply(witherSkeletonScale)), (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.WITHER_SKELETON_SKULL, (Object)mobHeadLayer);
result.put((Object)ModelLayers.WOLF, (Object)wolfBodyLayer);
result.put((Object)ModelLayers.WOLF_ARMOR, (Object)wolfArmorLayer);
result.put((Object)ModelLayers.WOLF_BABY, (Object)wolfBodyLayer.apply(WolfModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.WOLF_BABY_ARMOR, (Object)wolfArmorLayer.apply(WolfModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.ZOGLIN, (Object)hoglinLayer);
result.put((Object)ModelLayers.ZOGLIN_BABY, (Object)hoglinBabyLayer);
result.put((Object)ModelLayers.ZOMBIE, (Object)humanoidBodyLayer);
ModelLayers.ZOMBIE_ARMOR.putFrom(humanoidArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ZOMBIE_BABY, (Object)humanoidBodyLayer.apply(HumanoidModel.BABY_TRANSFORMER));
ModelLayers.ZOMBIE_BABY_ARMOR.putFrom(humanoidBabyArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ZOMBIE_HEAD, (Object)humanoidHeadLayer);
result.put((Object)ModelLayers.ZOMBIE_HORSE, (Object)horseBodyLayer);
result.put((Object)ModelLayers.ZOMBIE_HORSE_BABY, (Object)horseBabyLayer);
result.put((Object)ModelLayers.ZOMBIE_HORSE_SADDLE, (Object)horseSaddleLayer);
result.put((Object)ModelLayers.ZOMBIE_HORSE_BABY_SADDLE, (Object)horseBabySaddleLayer);
result.put((Object)ModelLayers.ZOMBIE_VILLAGER, (Object)zombieVillagerBodyLayer);
result.put((Object)ModelLayers.ZOMBIE_VILLAGER_NO_HAT, (Object)zombieVillagerNoHatLayer);
ArmorModelSet<LayerDefinition> zombieVillagerArmor = ZombieVillagerModel.createArmorLayerSet(INNER_ARMOR_DEFORMATION, OUTER_ARMOR_DEFORMATION);
ModelLayers.ZOMBIE_VILLAGER_ARMOR.putFrom(zombieVillagerArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ZOMBIE_VILLAGER_BABY, (Object)zombieVillagerBodyLayer.apply(HumanoidModel.BABY_TRANSFORMER));
result.put((Object)ModelLayers.ZOMBIE_VILLAGER_BABY_NO_HAT, (Object)zombieVillagerNoHatLayer.apply(HumanoidModel.BABY_TRANSFORMER));
ModelLayers.ZOMBIE_VILLAGER_BABY_ARMOR.putFrom(zombieVillagerArmor.map(layer -> layer.apply(HumanoidModel.BABY_TRANSFORMER)), (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ZOMBIFIED_PIGLIN, (Object)piglinLayer);
ModelLayers.ZOMBIFIED_PIGLIN_ARMOR.putFrom(piglinArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.ZOMBIFIED_PIGLIN_BABY, (Object)piglinLayer.apply(HumanoidModel.BABY_TRANSFORMER));
ModelLayers.ZOMBIFIED_PIGLIN_BABY_ARMOR.putFrom(piglinBabyArmor, (ImmutableMap.Builder<ModelLayerLocation, LayerDefinition>)result);
result.put((Object)ModelLayers.BAMBOO_RAFT, (Object)RaftModel.createRaftModel());
result.put((Object)ModelLayers.BAMBOO_CHEST_RAFT, (Object)RaftModel.createChestRaftModel());
LayerDefinition boatModel = BoatModel.createBoatModel();
LayerDefinition chestBoatModel = BoatModel.createChestBoatModel();
result.put((Object)ModelLayers.OAK_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.OAK_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.SPRUCE_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.SPRUCE_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.BIRCH_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.BIRCH_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.JUNGLE_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.JUNGLE_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.ACACIA_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.ACACIA_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.CHERRY_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.CHERRY_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.DARK_OAK_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.DARK_OAK_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.PALE_OAK_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.PALE_OAK_CHEST_BOAT, (Object)chestBoatModel);
result.put((Object)ModelLayers.MANGROVE_BOAT, (Object)boatModel);
result.put((Object)ModelLayers.MANGROVE_CHEST_BOAT, (Object)chestBoatModel);
LayerDefinition standingSignModel = SignRenderer.createSignLayer(true);
LayerDefinition wallSignModel = SignRenderer.createSignLayer(false);
WoodType.values().forEach(woodType -> {
result.put((Object)ModelLayers.createStandingSignModelName(woodType), (Object)standingSignModel);
result.put((Object)ModelLayers.createWallSignModelName(woodType), (Object)wallSignModel);
for (HangingSignRenderer.AttachmentType attachmentType : HangingSignRenderer.AttachmentType.values()) {
LayerDefinition hangingSignModel = HangingSignRenderer.createHangingSignLayer(attachmentType);
result.put((Object)ModelLayers.createHangingSignModelName(woodType, attachmentType), (Object)hangingSignModel);
}
});
ImmutableMap definitions = result.build();
List<ModelLayerLocation> missingDefinitions = ModelLayers.getKnownLocations().filter(l -> !definitions.containsKey(l)).toList();
if (!missingDefinitions.isEmpty()) {
throw new IllegalStateException("Missing layer definitions: " + String.valueOf(missingDefinitions));
}
return definitions;
}
}