Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This mod element is always locked. Enter your code in the methods below.
- * If you don't need some of these methods, you can remove them as they
- * are overrides of the base class ArgonianModelModElements.ModElement.
- *
- * You can register new events in this class too.
- *
- * As this class is loaded into mod element list, it NEEDS to extend
- * ModElement class. If you remove this extend statement or remove the
- * constructor, the compilation will fail.
- *
- * If you want to make a plain independent class, create it in
- * "Workspace" -> "Source" menu.
- *
- * If you change workspace package, modid or prefix, you will need
- * to manually adapt this file to these changes or remake it.
- */
- package net.mcreator.theminecraftanimemod;
- import net.minecraftforge.fml.event.server.FMLServerStartingEvent;
- import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
- import com.google.common.collect.ImmutableList;
- import com.mojang.blaze3d.matrix.MatrixStack;
- import com.mojang.blaze3d.vertex.IVertexBuilder;
- import net.minecraft.client.renderer.entity.model.AgeableModel;
- import net.minecraft.client.renderer.model.ModelRenderer;
- import net.minecraft.entity.LivingEntity;
- import com.mojang.blaze3d.matrix.MatrixStack;
- import com.mojang.blaze3d.vertex.IVertexBuilder;
- import net.minecraft.client.entity.player.AbstractClientPlayerEntity;
- import net.minecraft.client.renderer.IRenderTypeBuffer;
- import net.minecraft.util.math.MathHelper;
- import net.minecraft.client.renderer.ItemRenderer;
- import net.minecraft.client.renderer.entity.IEntityRenderer;
- import net.minecraft.client.renderer.entity.layers.LayerRenderer;
- import net.minecraft.client.renderer.entity.model.EntityModel;
- import net.minecraft.client.renderer.texture.OverlayTexture;
- import net.minecraft.entity.LivingEntity;
- import net.minecraft.entity.player.PlayerEntity;
- import net.minecraft.client.renderer.entity.*;
- import net.minecraftforge.common.MinecraftForge;
- import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
- import net.minecraftforge.eventbus.api.SubscribeEvent;
- import net.minecraft.client.renderer.entity.model.PlayerModel;
- import net.minecraft.client.Minecraft;
- import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
- import java.util.List;
- import java.util.Map;
- import net.minecraft.util.ResourceLocation;
- import net.minecraftforge.fml.common.Mod;
- import net.minecraftforge.api.distmarker.OnlyIn;
- import net.minecraftforge.api.distmarker.Dist;
- @Mod.EventBusSubscriber(modid = "the_minecraft_anime_mod", bus = Mod.EventBusSubscriber.Bus.MOD)
- @ArgonianModelModElements.ModElement.Tag
- public class EntityLayer extends ArgonianModelModElements.ModElement {
- /**
- * Do not remove this constructor
- */
- public EntityLayer(EntityLayerModElements instance) {
- super(instance, 1);
- }
- @Override
- public void initElements() {
- }
- @OnlyIn(Dist.CLIENT)
- @Override
- public void clientLoad(FMLClientSetupEvent event)
- {
- Map<String, PlayerRenderer> playerSkinMap = Minecraft.getInstance().getRenderManager().getSkinMap();
- EntityLayer.addPlayerLayers(playerSkinMap.get("default"));
- EntityLayer.addPlayerLayers(playerSkinMap.get("slim"));
- }
- @Override
- public void init(FMLCommonSetupEvent event) {
- }
- @Override
- public void serverLoad(FMLServerStartingEvent event) {
- }
- public static void addPlayerLayers(PlayerRenderer renderer)
- {
- List<LayerRenderer<AbstractClientPlayerEntity, PlayerModel<AbstractClientPlayerEntity>>> layers = ObfuscationReflectionHelper.getPrivateValue(LivingRenderer.class, renderer, "field_177097_h");
- if(layers != null)
- {
- layers.add(new playerlayer<>(renderer));
- }
- }
- public static class player<T extends LivingEntity> extends AgeableModel<T> {
- private final ModelRenderer head_joint;
- private final ModelRenderer bang_right_1;
- private final ModelRenderer bang_right_2;
- private final ModelRenderer bang_right_3;
- private final ModelRenderer bang_right_4;
- private final ModelRenderer bang_middle;
- private final ModelRenderer bang_left_1;
- private final ModelRenderer bang_left_2;
- private final ModelRenderer bang_left_3;
- private final ModelRenderer bang_left_4;
- private final ModelRenderer bang_left_5;
- private final ModelRenderer hair_right_1;
- private final ModelRenderer hair_right_2;
- private final ModelRenderer hair_right_3;
- private final ModelRenderer hair_right_4;
- private final ModelRenderer hair_left_1;
- private final ModelRenderer hair_left_2;
- private final ModelRenderer hair_left_3;
- private final ModelRenderer hair_left_4;
- private final ModelRenderer hair_left_5;
- private final ModelRenderer hair_left_6;
- private final ModelRenderer hair_left_7;
- private final ModelRenderer hair_left_8;
- private final ModelRenderer hair_left_9;
- private final ModelRenderer hair_left_10;
- private final ModelRenderer hair_right_6;
- private final ModelRenderer hair_right_7;
- private final ModelRenderer hair_right_8;
- private final ModelRenderer hair_right_9;
- private final ModelRenderer hair_right_10;
- private final ModelRenderer hair_right_11;
- private final ModelRenderer hair_right_12;
- private final ModelRenderer hair_right_13;
- private final ModelRenderer hair_left_12;
- private final ModelRenderer hair_left_13;
- private final ModelRenderer hair_left_14;
- private final ModelRenderer hair_left_15;
- private final ModelRenderer hair_left_16;
- private final ModelRenderer hair_right_14;
- private final ModelRenderer hair_right_15;
- private final ModelRenderer hair_right_17;
- private final ModelRenderer hair_right_18;
- private final ModelRenderer hair_right_19;
- private final ModelRenderer hair_right_20;
- private final ModelRenderer hair_right_21;
- private final ModelRenderer hair_right_22;
- private final ModelRenderer hair_left_17;
- private final ModelRenderer hair_left_18;
- private final ModelRenderer hair_left_19;
- private final ModelRenderer hair_left_20;
- private final ModelRenderer hair_left_21;
- private final ModelRenderer hair_left_22;
- private final ModelRenderer hair_left_23;
- private final ModelRenderer hair_left_24;
- private final ModelRenderer hair_left_25;
- private final ModelRenderer hair_right_23;
- private final ModelRenderer hair_left_26;
- private final ModelRenderer hair_left_27;
- private final ModelRenderer hair_left_28;
- private final ModelRenderer hair_left_29;
- private final ModelRenderer hair_left_30;
- private final ModelRenderer hair_left_31;
- private final ModelRenderer hair_left_32;
- private final ModelRenderer hair_right_24;
- private final ModelRenderer hair_right_25;
- private final ModelRenderer hair_left_33;
- private final ModelRenderer hair_left_34;
- private final ModelRenderer hair_left_35;
- private final ModelRenderer hair_left_35_1;
- public player() {
- textureWidth = 64;
- textureHeight = 64;
- head_joint = new ModelRenderer(this);
- head_joint.setRotationPoint(0.0F, 0.0F, 0.0F);
- head_joint.setTextureOffset(24, 0).addBox(-3.0F, -6.0F, -1.0F, 6.0F, 6.0F, 1.0F, 0.0F, false);
- bang_right_1 = new ModelRenderer(this);
- bang_right_1.setRotationPoint(-2.5F, -9.5F, -5.5F);
- setRotationAngle(bang_right_1, 0.0F, 0.0F, 0.821F);
- bang_right_1.setTextureOffset(58, 0).addBox(0.7F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_right_2 = new ModelRenderer(this);
- bang_right_2.setRotationPoint(-4.4F, -7.5F, -5.5F);
- setRotationAngle(bang_right_2, 0.0F, 0.0F, 0.4691F);
- bang_right_2.setTextureOffset(58, 0).addBox(0.5F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_right_3 = new ModelRenderer(this);
- bang_right_3.setRotationPoint(-5.5F, -5.5F, -5.5F);
- setRotationAngle(bang_right_3, 0.0F, 0.0F, 0.1955F);
- bang_right_3.setTextureOffset(58, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_right_4 = new ModelRenderer(this);
- bang_right_4.setRotationPoint(-6.0F, -3.0F, -5.5F);
- bang_right_4.setTextureOffset(58, 0).addBox(0.2F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_middle = new ModelRenderer(this);
- bang_middle.setRotationPoint(-0.5F, -10.0F, -4.5F);
- setRotationAngle(bang_middle, -0.3519F, 0.0F, 0.5473F);
- bang_middle.setTextureOffset(58, 0).addBox(-0.2F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_left_1 = new ModelRenderer(this);
- bang_left_1.setRotationPoint(0.5F, -8.3F, -5.5F);
- setRotationAngle(bang_left_1, 0.0F, 0.0F, -0.6646F);
- bang_left_1.setTextureOffset(58, 0).addBox(-0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_left_2 = new ModelRenderer(this);
- bang_left_2.setRotationPoint(2.0F, -8.0F, -5.0F);
- setRotationAngle(bang_left_2, 0.0F, 0.0F, -0.821F);
- bang_left_2.setTextureOffset(58, 0).addBox(-0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_left_3 = new ModelRenderer(this);
- bang_left_3.setRotationPoint(1.8F, -7.0F, -5.5F);
- setRotationAngle(bang_left_3, 0.0F, 0.0F, -0.43F);
- bang_left_3.setTextureOffset(58, 0).addBox(-0.5F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_left_4 = new ModelRenderer(this);
- bang_left_4.setRotationPoint(3.0F, -4.7F, -5.5F);
- setRotationAngle(bang_left_4, 0.0F, 0.0F, -0.1955F);
- bang_left_4.setTextureOffset(58, 0).addBox(-0.7F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- bang_left_5 = new ModelRenderer(this);
- bang_left_5.setRotationPoint(3.5F, -2.7F, -5.5F);
- bang_left_5.setTextureOffset(58, 0).addBox(-0.8F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- hair_right_1 = new ModelRenderer(this);
- hair_right_1.setRotationPoint(-3.5F, -10.5F, -4.0F);
- setRotationAngle(hair_right_1, 0.0F, 0.0F, 0.2346F);
- hair_right_1.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_2 = new ModelRenderer(this);
- hair_right_2.setRotationPoint(-3.0F, -11.7F, -3.9F);
- setRotationAngle(hair_right_2, 0.0F, -0.1564F, 0.2346F);
- hair_right_2.setTextureOffset(57, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
- hair_right_3 = new ModelRenderer(this);
- hair_right_3.setRotationPoint(-1.3F, -11.9F, -4.0F);
- setRotationAngle(hair_right_3, -0.1955F, -0.4691F, 0.3128F);
- hair_right_3.setTextureOffset(57, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_4 = new ModelRenderer(this);
- hair_right_4.setRotationPoint(-0.2F, -11.9F, -2.6F);
- setRotationAngle(hair_right_4, -0.1955F, 0.3519F, 0.0391F);
- hair_right_4.setTextureOffset(57, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_1 = new ModelRenderer(this);
- hair_left_1.setRotationPoint(2.8F, -12.1F, -2.3F);
- setRotationAngle(hair_left_1, -0.391F, 0.0391F, 0.0782F);
- hair_left_1.setTextureOffset(56, 0).addBox(0.6F, 0.0F, 0.0F, 1.0F, 4.0F, 3.0F, 0.0F, false);
- hair_left_2 = new ModelRenderer(this);
- hair_left_2.setRotationPoint(3.0F, -14.0F, -1.0F);
- setRotationAngle(hair_left_2, -0.391F, 0.0391F, 0.0782F);
- hair_left_2.setTextureOffset(56, 0).addBox(-0.5F, 0.0F, 0.0F, 2.0F, 4.0F, 1.0F, 0.0F, false);
- hair_left_3 = new ModelRenderer(this);
- hair_left_3.setRotationPoint(2.4F, -9.5F, -3.6F);
- setRotationAngle(hair_left_3, -0.391F, 0.0391F, 0.0782F);
- hair_left_3.setTextureOffset(56, 0).addBox(0.0F, 0.5F, 0.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);
- hair_left_4 = new ModelRenderer(this);
- hair_left_4.setRotationPoint(3.0F, -12.1F, -2.3F);
- setRotationAngle(hair_left_4, -0.1564F, 0.0391F, -0.2737F);
- hair_left_4.setTextureOffset(56, 0).addBox(-0.7F, 0.0F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_5 = new ModelRenderer(this);
- hair_left_5.setRotationPoint(3.4F, -8.7F, -3.0F);
- setRotationAngle(hair_left_5, -0.1173F, 0.0391F, -0.391F);
- hair_left_5.setTextureOffset(56, 0).addBox(-0.1F, 0.5F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_6 = new ModelRenderer(this);
- hair_left_6.setRotationPoint(3.5F, -8.7F, -3.6F);
- setRotationAngle(hair_left_6, -0.1173F, 0.0391F, 0.391F);
- hair_left_6.setTextureOffset(56, 0).addBox(0.9F, 0.5F, 0.0F, 1.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_7 = new ModelRenderer(this);
- hair_left_7.setRotationPoint(4.5F, -9.0F, -1.0F);
- setRotationAngle(hair_left_7, -0.1173F, -0.2737F, 0.4691F);
- hair_left_7.setTextureOffset(56, 0).addBox(0.9F, 0.5F, 0.0F, 1.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_8 = new ModelRenderer(this);
- hair_left_8.setRotationPoint(4.4F, -6.0F, 0.0F);
- setRotationAngle(hair_left_8, -0.1173F, -0.2737F, 0.6255F);
- hair_left_8.setTextureOffset(56, 0).addBox(0.0F, -1.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_9 = new ModelRenderer(this);
- hair_left_9.setRotationPoint(4.0F, -6.7F, -3.2F);
- setRotationAngle(hair_left_9, -0.1173F, 0.0391F, 0.43F);
- hair_left_9.setTextureOffset(56, 0).addBox(-0.1F, 0.5F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_10 = new ModelRenderer(this);
- hair_left_10.setRotationPoint(1.0F, -14.5F, -1.0F);
- setRotationAngle(hair_left_10, -0.391F, 0.1564F, -0.0391F);
- hair_left_10.setTextureOffset(56, 0).addBox(0.5F, 0.5F, 0.0F, 2.0F, 2.0F, 1.0F, 0.0F, false);
- hair_right_6 = new ModelRenderer(this);
- hair_right_6.setRotationPoint(-4.5F, -10.0F, -2.0F);
- setRotationAngle(hair_right_6, 0.0F, 0.2346F, -0.0782F);
- hair_right_6.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_7 = new ModelRenderer(this);
- hair_right_7.setRotationPoint(-5.3F, -8.8F, -0.5F);
- setRotationAngle(hair_right_7, -0.1564F, 0.1173F, -0.3519F);
- hair_right_7.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_8 = new ModelRenderer(this);
- hair_right_8.setRotationPoint(-5.5F, -10.0F, -0.1F);
- setRotationAngle(hair_right_8, -0.1955F, 0.1173F, -0.3519F);
- hair_right_8.setTextureOffset(56, 0).addBox(0.2F, 0.0F, 0.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);
- hair_right_9 = new ModelRenderer(this);
- hair_right_9.setRotationPoint(-5.5F, -7.5F, -2.5F);
- setRotationAngle(hair_right_9, -0.1564F, 0.1173F, -0.3519F);
- hair_right_9.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_10 = new ModelRenderer(this);
- hair_right_10.setRotationPoint(-5.8F, -8.5F, 2.0F);
- setRotationAngle(hair_right_10, -0.1173F, 0.1173F, -0.5473F);
- hair_right_10.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_11 = new ModelRenderer(this);
- hair_right_11.setRotationPoint(-5.9F, -9.0F, -2.1F);
- setRotationAngle(hair_right_11, -0.1564F, 0.1955F, -0.3519F);
- hair_right_11.setTextureOffset(56, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_12 = new ModelRenderer(this);
- hair_right_12.setRotationPoint(-6.2F, -9.8F, 2.3F);
- setRotationAngle(hair_right_12, -0.1564F, 0.1173F, -0.5082F);
- hair_right_12.setTextureOffset(56, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 2.0F, 2.0F, 0.0F, false);
- hair_right_13 = new ModelRenderer(this);
- hair_right_13.setRotationPoint(-6.0F, -6.0F, 1.0F);
- setRotationAngle(hair_right_13, -0.1173F, 0.1173F, -0.5473F);
- hair_right_13.setTextureOffset(56, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_12 = new ModelRenderer(this);
- hair_left_12.setRotationPoint(4.7F, -9.5F, 2.0F);
- setRotationAngle(hair_left_12, -0.1955F, -0.1173F, 0.7037F);
- hair_left_12.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_13 = new ModelRenderer(this);
- hair_left_13.setRotationPoint(5.5F, -10.3F, 2.4F);
- setRotationAngle(hair_left_13, -0.1955F, -0.1173F, 0.7037F);
- hair_left_13.setTextureOffset(56, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_14 = new ModelRenderer(this);
- hair_left_14.setRotationPoint(5.0F, -10.4F, -0.8F);
- setRotationAngle(hair_left_14, -0.1173F, -0.2737F, 0.4691F);
- hair_left_14.setTextureOffset(56, 0).addBox(-0.3F, 0.5F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_15 = new ModelRenderer(this);
- hair_left_15.setRotationPoint(-0.5F, -14.7F, -1.3F);
- setRotationAngle(hair_left_15, -0.2346F, -0.1955F, -0.1173F);
- hair_left_15.setTextureOffset(56, 0).addBox(0.5F, 0.5F, 0.0F, 2.0F, 7.0F, 1.0F, 0.0F, false);
- hair_left_16 = new ModelRenderer(this);
- hair_left_16.setRotationPoint(-1.5F, -15.2F, 0.3F);
- setRotationAngle(hair_left_16, -0.3128F, -0.3128F, -0.1173F);
- hair_left_16.setTextureOffset(56, 0).addBox(-0.5F, 0.0F, 0.0F, 2.0F, 8.0F, 1.0F, 0.0F, false);
- hair_right_14 = new ModelRenderer(this);
- hair_right_14.setRotationPoint(-0.9F, -14.5F, -1.3F);
- setRotationAngle(hair_right_14, -0.2346F, -0.3128F, 0.3484F);
- hair_right_14.setTextureOffset(56, 0).addBox(0.5F, 0.0F, 0.0F, 2.0F, 7.0F, 1.0F, 0.0F, false);
- hair_right_15 = new ModelRenderer(this);
- hair_right_15.setRotationPoint(-2.3F, -15.0F, -0.4F);
- setRotationAngle(hair_right_15, -0.2346F, -0.3128F, 0.192F);
- hair_right_15.setTextureOffset(56, 0).addBox(0.5F, 0.0F, 0.0F, 2.0F, 8.0F, 1.0F, 0.0F, false);
- hair_right_17 = new ModelRenderer(this);
- hair_right_17.setRotationPoint(-2.8F, -12.0F, -1.3F);
- setRotationAngle(hair_right_17, -0.2346F, -0.3128F, 0.192F);
- hair_right_17.setTextureOffset(56, 0).addBox(0.7F, 0.0F, 0.0F, 1.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_18 = new ModelRenderer(this);
- hair_right_18.setRotationPoint(-2.4F, -15.5F, 1.5F);
- setRotationAngle(hair_right_18, -0.1955F, 0.0F, 0.192F);
- hair_right_18.setTextureOffset(56, 0).addBox(0.5F, 0.0F, 0.0F, 2.0F, 4.0F, 1.0F, 0.0F, false);
- hair_right_19 = new ModelRenderer(this);
- hair_right_19.setRotationPoint(-3.1F, -12.0F, 0.5F);
- setRotationAngle(hair_right_19, -0.2346F, -0.1564F, 0.192F);
- hair_right_19.setTextureOffset(56, 0).addBox(0.0F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_20 = new ModelRenderer(this);
- hair_right_20.setRotationPoint(-2.9F, -11.0F, 2.5F);
- setRotationAngle(hair_right_20, -0.2346F, 0.1564F, 0.192F);
- hair_right_20.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_right_21 = new ModelRenderer(this);
- hair_right_21.setRotationPoint(-2.3F, -12.8F, 3.0F);
- setRotationAngle(hair_right_21, -0.2346F, 0.1564F, 0.192F);
- hair_right_21.setTextureOffset(56, 0).addBox(0.9F, 0.0F, 0.0F, 1.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_22 = new ModelRenderer(this);
- hair_right_22.setRotationPoint(-2.0F, -14.0F, 3.2F);
- setRotationAngle(hair_right_22, -0.2346F, 0.1564F, 0.192F);
- hair_right_22.setTextureOffset(56, 0).addBox(0.7F, 0.0F, -1.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_17 = new ModelRenderer(this);
- hair_left_17.setRotationPoint(0.0F, -15.8F, 0.3F);
- setRotationAngle(hair_left_17, -0.1955F, -0.3128F, 0.0782F);
- hair_left_17.setTextureOffset(56, 0).addBox(-0.5F, 0.5F, 0.0F, 2.0F, 8.0F, 1.0F, 0.0F, false);
- hair_left_18 = new ModelRenderer(this);
- hair_left_18.setRotationPoint(0.8F, -15.0F, 0.7F);
- setRotationAngle(hair_left_18, -0.1955F, -0.3128F, -0.0782F);
- hair_left_18.setTextureOffset(56, 0).addBox(-0.5F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_19 = new ModelRenderer(this);
- hair_left_19.setRotationPoint(0.9F, -12.8F, -2.0F);
- setRotationAngle(hair_left_19, -0.391F, 0.1564F, -0.0391F);
- hair_left_19.setTextureOffset(56, 0).addBox(0.7F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_20 = new ModelRenderer(this);
- hair_left_20.setRotationPoint(0.8F, -11.0F, -2.4F);
- setRotationAngle(hair_left_20, -0.1955F, 0.1564F, -0.0782F);
- hair_left_20.setTextureOffset(56, 0).addBox(0.7F, 0.0F, 0.0F, 1.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_21 = new ModelRenderer(this);
- hair_left_21.setRotationPoint(0.9F, -12.5F, 0.0F);
- setRotationAngle(hair_left_21, -0.1955F, -0.3128F, -0.0782F);
- hair_left_21.setTextureOffset(56, 0).addBox(0.9F, 0.0F, 0.0F, 1.0F, 5.0F, 2.0F, 0.0F, false);
- hair_left_22 = new ModelRenderer(this);
- hair_left_22.setRotationPoint(2.0F, -10.8F, 2.2F);
- setRotationAngle(hair_left_22, -0.2737F, -0.0782F, -0.1599F);
- hair_left_22.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_23 = new ModelRenderer(this);
- hair_left_23.setRotationPoint(1.5F, -12.8F, 2.8F);
- setRotationAngle(hair_left_23, -0.2346F, -0.0391F, -0.2381F);
- hair_left_23.setTextureOffset(56, 0).addBox(0.9F, 0.0F, 0.0F, 1.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_24 = new ModelRenderer(this);
- hair_left_24.setRotationPoint(0.9F, -14.0F, 3.3F);
- setRotationAngle(hair_left_24, -0.2346F, 0.0391F, -0.3161F);
- hair_left_24.setTextureOffset(56, 0).addBox(-0.5F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_25 = new ModelRenderer(this);
- hair_left_25.setRotationPoint(2.0F, -10.3F, 4.5F);
- setRotationAngle(hair_left_25, -0.7821F, -0.1173F, 0.0391F);
- hair_left_25.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_23 = new ModelRenderer(this);
- hair_right_23.setRotationPoint(-3.2F, -10.3F, 4.5F);
- setRotationAngle(hair_right_23, -0.7821F, -0.1173F, 0.2346F);
- hair_right_23.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_26 = new ModelRenderer(this);
- hair_left_26.setRotationPoint(-0.5F, -9.0F, 4.5F);
- setRotationAngle(hair_left_26, -0.5866F, -0.43F, 0.0782F);
- hair_left_26.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_27 = new ModelRenderer(this);
- hair_left_27.setRotationPoint(-0.5F, -11.2F, 4.0F);
- setRotationAngle(hair_left_27, -0.5866F, -0.43F, 0.0782F);
- hair_left_27.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 5.0F, 2.0F, 0.0F, false);
- hair_left_28 = new ModelRenderer(this);
- hair_left_28.setRotationPoint(-0.7F, -12.5F, 4.9F);
- setRotationAngle(hair_left_28, -0.5866F, -0.43F, 0.0782F);
- hair_left_28.setTextureOffset(56, 0).addBox(-0.1F, 0.0F, 0.0F, 2.0F, 5.0F, 1.0F, 0.0F, false);
- hair_left_29 = new ModelRenderer(this);
- hair_left_29.setRotationPoint(-0.7F, -10.5F, 5.5F);
- setRotationAngle(hair_left_29, -0.5866F, -0.43F, 0.0782F);
- hair_left_29.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_30 = new ModelRenderer(this);
- hair_left_30.setRotationPoint(1.9F, -11.3F, 5.5F);
- setRotationAngle(hair_left_30, -0.7821F, -0.1173F, 0.0391F);
- hair_left_30.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_31 = new ModelRenderer(this);
- hair_left_31.setRotationPoint(0.0F, -6.2F, 2.8F);
- setRotationAngle(hair_left_31, -0.5866F, -0.43F, 0.0782F);
- hair_left_31.setTextureOffset(56, 0).addBox(0.5F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_32 = new ModelRenderer(this);
- hair_left_32.setRotationPoint(3.2F, -8.0F, 3.4F);
- setRotationAngle(hair_left_32, -0.5866F, -0.6646F, 0.5864F);
- hair_left_32.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_24 = new ModelRenderer(this);
- hair_right_24.setRotationPoint(-3.0F, -8.0F, 3.4F);
- setRotationAngle(hair_right_24, -0.5866F, -0.6646F, 0.1173F);
- hair_right_24.setTextureOffset(56, 0).addBox(0.3F, 0.0F, 0.0F, 2.0F, 4.0F, 2.0F, 0.0F, false);
- hair_right_25 = new ModelRenderer(this);
- hair_right_25.setRotationPoint(-2.7F, -6.6F, 2.6F);
- setRotationAngle(hair_right_25, -0.5866F, -0.6646F, 0.1173F);
- hair_right_25.setTextureOffset(56, 0).addBox(0.5F, 0.0F, 0.0F, 2.0F, 3.0F, 2.0F, 0.0F, false);
- hair_left_33 = new ModelRenderer(this);
- hair_left_33.setRotationPoint(0.0F, -12.5F, 1.7F);
- setRotationAngle(hair_left_33, -0.1955F, -0.3128F, -0.0782F);
- hair_left_33.setTextureOffset(56, 0).addBox(0.9F, 0.0F, 0.0F, 1.0F, 5.0F, 2.0F, 0.0F, false);
- hair_left_34 = new ModelRenderer(this);
- hair_left_34.setRotationPoint(-0.2F, -14.0F, 1.9F);
- setRotationAngle(hair_left_34, -0.1955F, -0.3128F, -0.0782F);
- hair_left_34.setTextureOffset(56, 0).addBox(0.9F, 0.0F, 0.0F, 1.0F, 4.0F, 2.0F, 0.0F, false);
- hair_left_35 = new ModelRenderer(this);
- hair_left_35.setRotationPoint(-1.7F, -12.5F, 4.0F);
- setRotationAngle(hair_left_35, -0.1955F, 0.2737F, -0.0782F);
- hair_left_35.setTextureOffset(56, 0).addBox(0.1F, 0.0F, 0.0F, 2.0F, 5.0F, 2.0F, 0.0F, false);
- hair_left_35_1 = new ModelRenderer(this);
- hair_left_35_1.setRotationPoint(4.0F, -12.5F, -0.1F);
- setRotationAngle(hair_left_35_1, -0.1564F, -0.3128F, 0.2737F);
- hair_left_35_1.setTextureOffset(56, 0).addBox(-0.1F, 0.0F, 0.0F, 2.0F, 5.0F, 2.0F, 0.0F, false);
- }
- @Override
- public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch){
- //previously the render function, render code was moved to a method below
- }
- this.head_joint.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_right_1.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_right_2.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_right_3.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_right_4.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_middle.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_left_1.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_left_2.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_left_3.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_left_4.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.bang_left_5.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_1.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_2.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_3.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_4.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_1.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_2.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_3.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_4.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_5.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_6.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_7.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_8.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_9.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_10.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_6.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_7.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_8.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_9.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_10.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_11.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_12.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_13.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_12.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_13.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_14.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_15.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_16.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_14.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_15.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_17.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_18.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_19.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_20.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_21.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_22.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_17.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_18.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_19.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_20.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_21.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_22.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_23.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_24.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_25.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_23.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_26.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_27.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_28.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_29.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_30.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_31.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_32.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_24.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_right_25.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_33.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_34.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_35.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- this.hair_left_35_1.rotateAngleY = netHeadYaw * ((float) Math.PI / 180F);
- //add back the other two if this fails.
- this.head_joint.rotateAngleX = headPitch * ((float) Math.PI / 180F);
- if (entityIn instanceof PlayerEntity) {
- if (entityIn.isCrouching()) {
- this.bang_right_1.rotationPointY = 4.2F;
- this.bang_right_2.rotationPointY = 4.2F;
- this.bang_right_3.rotationPointY = 4.2F;
- this.bang_right_4.rotationPointY = 4.2F;
- this.bang_middle.rotationPointY = 4.2F;
- this.bang_left_1.rotationPointY = 4.2F;
- this.bang_left_2.rotationPointY = 4.2F;
- this.bang_left_3.rotationPointY = 4.2F;
- this.bang_left_4.rotationPointY = 4.2F;
- this.bang_left_5.rotationPointY = 4.2F;
- this.hair_right_1.rotationPointY = 4.2F;
- this.hair_right_2.rotationPointY = 4.2F;
- this.hair_right_3.rotationPointY = 4.2F;
- this.hair_right_4.rotationPointY = 4.2F;
- this.hair_left_1.rotationPointY = 4.2F;
- this.hair_left_2.rotationPointY = 4.2F;
- this.hair_left_3.rotationPointY = 4.2F;
- this.hair_left_4.rotationPointY = 4.2F;
- this.hair_left_5.rotationPointY = 4.2F;
- this.hair_left_6.rotationPointY = 4.2F;
- this.hair_left_7.rotationPointY = 4.2F;
- this.hair_left_8.rotationPointY = 4.2F;
- this.hair_left_9.rotationPointY = 4.2F;
- this.hair_left_10.rotationPointY = 4.2F;
- this.hair_right_6.rotationPointY = 4.2F;
- this.hair_right_7.rotationPointY = 4.2F;
- this.hair_right_8.rotationPointY = 4.2F;
- this.hair_right_9.rotationPointY = 4.2F;
- this.hair_right_10.rotationPointY = 4.2F;
- this.hair_right_11.rotationPointY = 4.2F;
- this.hair_right_12.rotationPointY = 4.2F;
- this.hair_right_13.rotationPointY = 4.2F;
- this.hair_left_12.rotationPointY = 4.2F;
- this.hair_left_13.rotationPointY = 4.2F;
- this.hair_left_14.rotationPointY = 4.2F;
- this.hair_left_15.rotationPointY = 4.2F;
- this.hair_left_16.rotationPointY = 4.2F;
- this.hair_right_14.rotationPointY = 4.2F;
- this.hair_right_15.rotationPointY = 4.2F;
- this.hair_right_17.rotationPointY = 4.2F;
- this.hair_right_18.rotationPointY = 4.2F;
- this.hair_right_19.rotationPointY = 4.2F;
- this.hair_right_20.rotationPointY = 4.2F;
- this.hair_right_21.rotationPointY = 4.2F;
- this.hair_right_22.rotationPointY = 4.2F;
- this.hair_left_17.rotationPointY = 4.2F;
- this.hair_left_18.rotationPointY = 4.2F;
- this.hair_left_19.rotationPointY = 4.2F;
- this.hair_left_20.rotationPointY = 4.2F;
- this.hair_left_21.rotationPointY = 4.2F;
- this.hair_left_22.rotationPointY = 4.2F;
- this.hair_left_23.rotationPointY = 4.2F;
- this.hair_left_24.rotationPointY = 4.2F;
- this.hair_left_25.rotationPointY = 4.2F;
- this.hair_right_23.rotationPointY = 4.2F;
- this.hair_left_26.rotationPointY = 4.2F;
- this.hair_left_27.rotationPointY = 4.2F;
- this.hair_left_28.rotationPointY = 4.2F;
- this.hair_left_29.rotationPointY = 4.2F;
- this.hair_left_30.rotationPointY = 4.2F;
- this.hair_left_31.rotationPointY = 4.2F;
- this.hair_left_32.rotationPointY = 4.2F;
- this.hair_right_24.rotationPointY = 4.2F;
- this.hair_right_25.rotationPointY = 4.2F;
- this.hair_left_33.rotationPointY = 4.2F;
- this.hair_left_34.rotationPointY = 4.2F;
- this.hair_left_35.rotationPointY = 4.2F;
- this.hair_left_35_1.rotationPointY = 4.2F;
- } else {
- this.head_joint.rotationPointY = 0.0F;
- this.bang_right_1.rotationPointY = 0.0F;
- this.bang_right_2.rotationPointY = 0.0F;
- this.bang_right_3.rotationPointY = 0.0F;
- this.bang_right_4.rotationPointY = 0.0F;
- this.bang_middle.rotationPointY = 0.0F;
- this.bang_left_1.rotationPointY = 0.0F;
- this.bang_left_2.rotationPointY = 0.0F;
- this.bang_left_3.rotationPointY = 0.0F;
- this.bang_left_4.rotationPointY = 0.0F;
- this.bang_left_5.rotationPointY = 0.0F;
- this.hair_right_1.rotationPointY = 0.0F;
- this.hair_right_2.rotationPointY = 0.0F;
- this.hair_right_3.rotationPointY = 0.0F;
- this.hair_right_4.rotationPointY = 0.0F;
- this.hair_left_1.rotationPointY = 0.0F;
- this.hair_left_2.rotationPointY = 0.0F;
- this.hair_left_3.rotationPointY = 0.0F;
- this.hair_left_4.rotationPointY = 0.0F;
- this.hair_left_5.rotationPointY = 0.0F;
- this.hair_left_6.rotationPointY = 0.0F;
- this.hair_left_7.rotationPointY = 0.0F;
- this.hair_left_8.rotationPointY = 0.0F;
- this.hair_left_9.rotationPointY = 0.0F;
- this.hair_left_10.rotationPointY = 0.0F;
- this.hair_right_6.rotationPointY = 0.0F;
- this.hair_right_7.rotationPointY = 0.0F;
- this.hair_right_8.rotationPointY = 0.0F;
- this.hair_right_9.rotationPointY = 0.0F;
- this.hair_right_10.rotationPointY = 0.0F;
- this.hair_right_11.rotationPointY = 0.0F;
- this.hair_right_12.rotationPointY = 0.0F;
- this.hair_right_13.rotationPointY = 0.0F;
- this.hair_left_12.rotationPointY = 0.0F;
- this.hair_left_13.rotationPointY = 0.0F;
- this.hair_left_14.rotationPointY = 0.0F;
- this.hair_left_15.rotationPointY = 0.0F;
- this.hair_left_16.rotationPointY = 0.0F;
- this.hair_right_14.rotationPointY = 0.0F;
- this.hair_right_15.rotationPointY = 0.0F;
- this.hair_right_17.rotationPointY = 0.0F;
- this.hair_right_18.rotationPointY = 0.0F;
- this.hair_right_19.rotationPointY = 0.0F;
- this.hair_right_20.rotationPointY = 0.0F;
- this.hair_right_21.rotationPointY = 0.0F;
- this.hair_right_22.rotationPointY = 0.0F;
- this.hair_left_17.rotationPointY = 0.0F;
- this.hair_left_18.rotationPointY = 0.0F;
- this.hair_left_19.rotationPointY = 0.0F;
- this.hair_left_20.rotationPointY = 0.0F;
- this.hair_left_21.rotationPointY = 0.0F;
- this.hair_left_22.rotationPointY = 0.0F;
- this.hair_left_23.rotationPointY = 0.0F;
- this.hair_left_24.rotationPointY = 0.0F;
- this.hair_left_25.rotationPointY = 0.0F;
- this.hair_right_23.rotationPointY = 0.0F;
- this.hair_left_26.rotationPointY = 0.0F;
- this.hair_left_27.rotationPointY = 0.0F;
- this.hair_left_28.rotationPointY = 0.0F;
- this.hair_left_29.rotationPointY = 0.0F;
- this.hair_left_30.rotationPointY = 0.0F;
- this.hair_left_31.rotationPointY = 0.0F;
- this.hair_left_32.rotationPointY = 0.0F;
- this.hair_right_24.rotationPointY = 0.0F;
- this.hair_right_25.rotationPointY = 0.0F;
- this.hair_left_33.rotationPointY = 0.0F;
- this.hair_left_34.rotationPointY = 0.0F;
- this.hair_left_35.rotationPointY = 0.0F;
- this.hair_left_35_1.rotationPointY = 0.0F;
- }
- }
- }
- @Override
- protected Iterable<ModelRenderer> getHeadParts() {
- return ImmutableList.of(this.head_joint);
- return ImmutableList.of(this.bang_right_1);
- return ImmutableList.of(this.bang_right_2);
- return ImmutableList.of(this.bang_right_3);
- return ImmutableList.of(this.bang_right_4);
- return ImmutableList.of(this.bang_middle);
- return ImmutableList.of(this.bang_left_1);
- return ImmutableList.of(this.bang_left_2);
- return ImmutableList.of(this.bang_left_3);
- return ImmutableList.of(this.bang_left_4);
- return ImmutableList.of(this.bang_left_5);
- return ImmutableList.of(this.hair_right_1);
- return ImmutableList.of(this.hair_right_2);
- return ImmutableList.of(this.hair_right_3);
- return ImmutableList.of(this.hair_right_4);
- return ImmutableList.of(this.hair_left_1);
- return ImmutableList.of(this.hair_left_2);
- return ImmutableList.of(this.hair_left_3);
- return ImmutableList.of(this.hair_left_4);
- return ImmutableList.of(this.hair_left_5);
- return ImmutableList.of(this.hair_left_6);
- return ImmutableList.of(this.hair_left_7);
- return ImmutableList.of(this.hair_left_8);
- return ImmutableList.of(this.hair_left_9);
- return ImmutableList.of(this.hair_left_10);
- return ImmutableList.of(this.hair_right_6);
- return ImmutableList.of(this.hair_right_7);
- return ImmutableList.of(this.hair_right_8);
- return ImmutableList.of(this.hair_right_9);
- return ImmutableList.of(this.hair_right_10);
- return ImmutableList.of(this.hair_right_11);
- return ImmutableList.of(this.hair_right_12);
- return ImmutableList.of(this.hair_right_13);
- return ImmutableList.of(this.hair_left_12);
- return ImmutableList.of(this.hair_left_13);
- return ImmutableList.of(this.hair_left_14);
- return ImmutableList.of(this.hair_left_15);
- return ImmutableList.of(this.hair_left_16);
- return ImmutableList.of(this.hair_right_14);
- return ImmutableList.of(this.hair_right_15);
- return ImmutableList.of(this.hair_right_17);
- return ImmutableList.of(this.hair_right_18);
- return ImmutableList.of(this.hair_right_19);
- return ImmutableList.of(this.hair_right_20);
- return ImmutableList.of(this.hair_right_21);
- return ImmutableList.of(this.hair_right_22);
- return ImmutableList.of(this.hair_left_17);
- return ImmutableList.of(this.hair_left_18);
- return ImmutableList.of(this.hair_left_19);
- return ImmutableList.of(this.hair_left_20);
- return ImmutableList.of(this.hair_left_21);
- return ImmutableList.of(this.hair_left_22);
- return ImmutableList.of(this.hair_left_23);
- return ImmutableList.of(this.hair_left_24);
- return ImmutableList.of(this.hair_left_25);
- return ImmutableList.of(this.hair_right_23);
- return ImmutableList.of(this.hair_left_26);
- return ImmutableList.of(this.hair_left_27);
- return ImmutableList.of(this.hair_left_28);
- return ImmutableList.of(this.hair_left_29);
- return ImmutableList.of(this.hair_left_30);
- return ImmutableList.of(this.hair_left_31);
- return ImmutableList.of(this.hair_left_32);
- return ImmutableList.of(this.hair_right_24);
- return ImmutableList.of(this.hair_right_25);
- return ImmutableList.of(this.hair_left_33);
- return ImmutableList.of(this.hair_left_34);
- return ImmutableList.of(this.hair_left_35);
- return ImmutableList.of(this.hair_left_35_1);
- }
- public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
- modelRenderer.rotateAngleX = x;
- modelRenderer.rotateAngleY = y;
- modelRenderer.rotateAngleZ = z;
- }
- }
- public static class playerlayer<T extends LivingEntity, M extends EntityModel<T>> extends LayerRenderer<T, M> {
- private static ResourceLocation resource = new ResourceLocation("the_minecraft_anime_mod", "textures/steve.png");
- private player model = new player();
- public playerlayer(IEntityRenderer<T, M> entityRendererIn) {
- super(entityRendererIn);
- }
- @Override
- public void render(MatrixStack matrixStackIn, IRenderTypeBuffer bufferIn, int packedLightIn, T entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch) {
- if (entitylivingbaseIn instanceof AbstractClientPlayerEntity) {
- matrixStackIn.push();
- this.getEntityModel().copyModelAttributesTo(this.model);
- this.model.setRotationAngles(entitylivingbaseIn, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch);
- IVertexBuilder ivertexbuilder = ItemRenderer.getBuffer(bufferIn, this.model.getRenderType(((AbstractClientPlayerEntity) entitylivingbaseIn).getLocationSkin()), false, false);
- this.model.render(matrixStackIn, ivertexbuilder, packedLightIn, OverlayTexture.NO_OVERLAY, 1.0F, 1.0F, 1.0F, 1.0F);
- matrixStackIn.pop();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment