Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package mod.mcreator;
- import net.minecraftforge.fml.relauncher.SideOnly;
- import net.minecraftforge.fml.relauncher.Side;
- import net.minecraftforge.fml.common.registry.EntityRegistry;
- import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
- import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
- import net.minecraftforge.fml.common.event.FMLInitializationEvent;
- import net.minecraftforge.fml.client.registry.RenderingRegistry;
- import net.minecraft.world.biome.Biome;
- import net.minecraft.world.World;
- import net.minecraft.util.registry.RegistryNamespaced;
- import net.minecraft.util.math.MathHelper;
- import net.minecraft.util.ResourceLocation;
- import net.minecraft.util.EnumHand;
- import net.minecraft.util.DamageSource;
- import net.minecraft.item.ItemStack;
- import net.minecraft.item.Item;
- import net.minecraft.entity.player.EntityPlayer;
- import net.minecraft.entity.effect.EntityLightningBolt;
- import net.minecraft.entity.boss.EntityDragon;
- import net.minecraft.entity.ai.EntityAIWatchClosest;
- import net.minecraft.entity.ai.EntityAIWander;
- import net.minecraft.entity.ai.EntityAISwimming;
- import net.minecraft.entity.ai.EntityAILookIdle;
- import net.minecraft.entity.SharedMonsterAttributes;
- import net.minecraft.entity.EnumCreatureType;
- import net.minecraft.entity.EntityCreature;
- import net.minecraft.entity.Entity;
- import net.minecraft.client.renderer.entity.RenderLiving;
- import net.minecraft.client.model.ModelRenderer;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.Minecraft;
- import java.util.Random;
- import java.util.Iterator;
- import java.util.ArrayList;
- @SuppressWarnings("unchecked")
- public class mcreator_testenvironmentmod {
- public int mobid = 0;
- public static Object instance;
- public void load(FMLInitializationEvent event) {
- }
- public void generateNether(World world, Random random, int chunkX, int chunkZ) {
- }
- public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
- }
- public int addFuel(ItemStack fuel) {
- return 0;
- }
- @SideOnly(Side.CLIENT)
- public void registerRenderers() {
- RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_testenvironmentmod.ModelVargheist(), 0) {
- protected ResourceLocation getEntityTexture(Entity par1Entity) {
- return new ResourceLocation("testenvironmentmodtexturemap--.png");
- }
- };
- RenderingRegistry.registerEntityRenderingHandler(mcreator_testenvironmentmod.Entitytestenvironmentmod.class, customRender);
- }
- public void serverLoad(FMLServerStartingEvent event) {
- }
- public void preInit(FMLPreInitializationEvent event) {
- int entityID = MathHelper.getRandomUUID().hashCode();
- mobid = entityID;
- EntityRegistry.registerModEntity(new ResourceLocation("testenvironmentmod:testenvironmentmod"), mcreator_testenvironmentmod.Entitytestenvironmentmod.class, "testenvironmentmod",
- entityID, instance, 64, 1, true, (0 << 16) + (0 << 8) + 0, (255 << 16) + (51 << 8) + 51);
- EntityRegistry.addSpawn(mcreator_testenvironmentmod.Entitytestenvironmentmod.class, 20, 3, 30, EnumCreatureType.MONSTER,
- Biome.REGISTRY.getObject(new ResourceLocation("hell")));
- }
- public static Biome[] clean(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
- Iterator<Biome> itr = in.iterator();
- ArrayList<Biome> ls = new ArrayList<Biome>();
- while (itr.hasNext()) {
- ls.add(itr.next());
- }
- return ls.toArray(new Biome[ls.size()]);
- }
- public static class Entitytestenvironmentmod extends EntityCreature {
- World world = null;
- public Entitytestenvironmentmod(World var1) {
- super(var1);
- world = var1;
- experienceValue = 7;
- this.isImmuneToFire = true;
- addRandomArmor();
- setNoAI(!true);
- this.tasks.addTask(0, new EntityAISwimming(this));
- this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
- this.tasks.addTask(8, new EntityAILookIdle(this));
- this.tasks.addTask(1, new EntityAIWander(this, 0.8D));
- this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityDragon.class, 6.0F));
- }
- protected void applyEntityAttributes() {
- super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.65D);
- this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20D);
- if (this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) != null)
- this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(7D);
- }
- protected void addRandomArmor() {
- }
- @Override
- protected Item getDropItem() {
- return null;
- }
- @Override
- protected net.minecraft.util.SoundEvent getAmbientSound() {
- return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.growl"));
- }
- @Override
- protected net.minecraft.util.SoundEvent getHurtSound(DamageSource ds) {
- return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.hurt"));
- }
- @Override
- protected net.minecraft.util.SoundEvent getDeathSound() {
- return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.die"));
- }
- @Override
- public void onStruckByLightning(EntityLightningBolt entityLightningBolt) {
- super.onStruckByLightning(entityLightningBolt);
- int i = (int) this.posX;
- int j = (int) this.posY;
- int k = (int) this.posZ;
- Entity entity = this;
- }
- @Override
- public void fall(float l, float d) {
- super.fall(l, d);
- int i = (int) this.posX;
- int j = (int) this.posY;
- int k = (int) this.posZ;
- super.fall(l, d);
- Entity entity = this;
- }
- @Override
- public void onDeath(DamageSource source) {
- super.onDeath(source);
- int i = (int) this.posX;
- int j = (int) this.posY;
- int k = (int) this.posZ;
- Entity entity = this;
- }
- @Override
- public boolean processInteract(EntityPlayer entity, EnumHand hand) {
- super.processInteract(entity, hand);
- int i = (int) this.posX;
- int j = (int) this.posY;
- int k = (int) this.posZ;
- return true;
- }
- @Override
- protected float getSoundVolume() {
- return 1.0F;
- }
- }
- /**
- * Vargheist - Alex Created using Tabula 7.0.0
- */
- public static class ModelVargheist extends ModelBase {
- public ModelRenderer Torso;
- public ModelRenderer Lowerback;
- public ModelRenderer UpperlegR;
- public ModelRenderer UpperlegL;
- public ModelRenderer Chest;
- public ModelRenderer ShoulderR;
- public ModelRenderer ShoulderL;
- public ModelRenderer Stomach;
- public ModelRenderer BottomlegR;
- public ModelRenderer FootbaseR;
- public ModelRenderer BottomlegL;
- public ModelRenderer FootbaseL;
- public ModelRenderer Spine;
- public ModelRenderer Stomachbottom;
- public ModelRenderer Back;
- public ModelRenderer UpperarmR;
- public ModelRenderer UpperarmL;
- public ModelRenderer MiddlearmR;
- public ModelRenderer WingRtop;
- public ModelRenderer BottomarmR;
- public ModelRenderer FingerRtop;
- public ModelRenderer FingerRbottom;
- public ModelRenderer WingRmiddle;
- public ModelRenderer WingRbottom;
- public ModelRenderer Wingfingertop;
- public ModelRenderer Wingfingertop_1;
- public ModelRenderer MiddlearmL;
- public ModelRenderer WingLtop;
- public ModelRenderer BottomarmL;
- public ModelRenderer FingerLtop;
- public ModelRenderer FingerLbottom;
- public ModelRenderer WingLmiddle;
- public ModelRenderer WingLbottom;
- public ModelRenderer Wingfingertop_2;
- public ModelRenderer Wingfingertop_3;
- public ModelRenderer Headcenter;
- public ModelRenderer EarR;
- public ModelRenderer EarL;
- public ModelRenderer Neck;
- public ModelRenderer Jaw;
- public ModelRenderer EarRlobe;
- public ModelRenderer EarLlobe;
- public ModelRenderer Neckbottom;
- public ModelVargheist() {
- this.textureWidth = 128;
- this.textureHeight = 128;
- this.Wingfingertop = new ModelRenderer(this, 32, 41);
- this.Wingfingertop.setRotationPoint(-1.1F, -2.7F, 9.0F);
- this.Wingfingertop.addBox(0.0F, 0.0F, 0.0F, 1, 38, 1, 0.0F);
- this.setRotateAngle(Wingfingertop, -0.2467895562319982F, 0.0F, 0.0F);
- this.Wingfingertop_1 = new ModelRenderer(this, 99, 49);
- this.Wingfingertop_1.setRotationPoint(-0.6F, -11.9F, -5.2F);
- this.Wingfingertop_1.addBox(0.0F, 0.0F, 0.0F, 1, 36, 1, 0.0F);
- this.setRotateAngle(Wingfingertop_1, 0.17174039839624203F, 0.0F, 0.0F);
- this.Lowerback = new ModelRenderer(this, 42, 0);
- this.Lowerback.setRotationPoint(4.2F, -8.7F, 15.0F);
- this.Lowerback.addBox(0.0F, 0.0F, -0.3F, 11, 10, 3, 0.0F);
- this.setRotateAngle(Lowerback, 0.027925268031909273F, 3.096039560112741F, 0.0F);
- this.UpperlegR = new ModelRenderer(this, 70, 0);
- this.UpperlegR.setRotationPoint(-0.5F, 4.7F, 8.5F);
- this.UpperlegR.addBox(0.0F, 0.0F, 0.0F, 6, 13, 7, 0.0F);
- this.setRotateAngle(UpperlegR, -1.1426670612806875F, 0.27314402793711257F, 0.0F);
- this.MiddlearmL = new ModelRenderer(this, 79, 45);
- this.MiddlearmL.setRotationPoint(0.0F, 41.9F, 0.0F);
- this.MiddlearmL.addBox(0.0F, 0.0F, 0.0F, 2, 12, 1, 0.0F);
- this.setRotateAngle(MiddlearmL, 1.5128513956286849F, 0.0F, 0.0F);
- this.Headcenter = new ModelRenderer(this, 0, 54);
- this.Headcenter.setRotationPoint(-3.8F, -25.2F, 1.7F);
- this.Headcenter.addBox(0.0F, 0.0F, 0.0F, 5, 6, 5, 0.0F);
- this.setRotateAngle(Headcenter, 0.091106186954104F, 0.0F, 0.0F);
- this.Chest = new ModelRenderer(this, 34, 13);
- this.Chest.setRotationPoint(1.7F, -5.9F, 2.1F);
- this.Chest.addBox(0.0F, 0.0F, 0.0F, 9, 17, 8, 0.0F);
- this.FingerLbottom = new ModelRenderer(this, 89, 0);
- this.FingerLbottom.setRotationPoint(-0.1F, 1.4F, -1.3F);
- this.FingerLbottom.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
- this.setRotateAngle(FingerLbottom, 0.8196066167365371F, 0.0F, 0.0F);
- this.Torso = new ModelRenderer(this, 0, 0);
- this.Torso.setRotationPoint(-7.6F, -4.2F, 3.5F);
- this.Torso.addBox(0.0F, 0.0F, 1.0F, 13, 11, 8, 0.0F);
- this.setRotateAngle(Torso, 0.44401176170735746F, 0.0F, 0.0F);
- this.Stomachbottom = new ModelRenderer(this, 36, 38);
- this.Stomachbottom.setRotationPoint(0.0F, -7.5F, 2.1F);
- this.Stomachbottom.addBox(0.0F, 0.0F, 0.0F, 9, 10, 3, 0.0F);
- this.setRotateAngle(Stomachbottom, -0.31869712141416456F, 0.0F, 0.0F);
- this.FingerRbottom = new ModelRenderer(this, 34, 0);
- this.FingerRbottom.setRotationPoint(-0.1F, 1.4F, -1.3F);
- this.FingerRbottom.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
- this.setRotateAngle(FingerRbottom, 0.8196066167365371F, 0.0F, 0.0F);
- this.WingRmiddle = new ModelRenderer(this, 0, 0);
- this.WingRmiddle.setRotationPoint(0.3F, 2.6F, 6.6F);
- this.WingRmiddle.addBox(0.0F, 0.0F, 0.0F, 0, 30, 12, 0.0F);
- this.setRotateAngle(WingRmiddle, -0.22759093446006054F, 0.0F, 0.0F);
- this.Back = new ModelRenderer(this, 0, 41);
- this.Back.setRotationPoint(0.9F, -9.2F, 3.4F);
- this.Back.addBox(0.0F, 0.0F, 0.0F, 9, 10, 3, 0.0F);
- this.setRotateAngle(Back, -0.3797836452339661F, 0.0F, 0.0F);
- this.FingerRtop = new ModelRenderer(this, 0, 0);
- this.FingerRtop.setRotationPoint(1.0F, -0.1F, -1.6F);
- this.FingerRtop.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
- this.FootbaseR = new ModelRenderer(this, 7, 25);
- this.FootbaseR.setRotationPoint(0.9F, 6.6F, -9.2F);
- this.FootbaseR.addBox(0.0F, 0.0F, 0.0F, 3, 3, 13, 0.0F);
- this.setRotateAngle(FootbaseR, 0.05794493116621174F, 0.0F, 0.0F);
- this.BottomlegL = new ModelRenderer(this, 84, 33);
- this.BottomlegL.setRotationPoint(0.3F, 13.0F, 6.3F);
- this.BottomlegL.addBox(0.0F, 0.0F, 0.0F, 4, 9, 4, 0.0F);
- this.setRotateAngle(BottomlegL, 1.593485607070823F, 0.0F, 0.0F);
- this.WingLtop = new ModelRenderer(this, 36, 51);
- this.WingLtop.setRotationPoint(0.9F, 7.4F, 2.1F);
- this.WingLtop.addBox(0.0F, 0.0F, 0.0F, 1, 34, 9, 0.0F);
- this.setRotateAngle(WingLtop, -0.045553093477052F, 0.0F, 0.0F);
- this.UpperlegL = new ModelRenderer(this, 96, 0);
- this.UpperlegL.setRotationPoint(7.9F, 4.7F, 6.3F);
- this.UpperlegL.addBox(0.0F, 0.0F, 0.0F, 6, 13, 7, 0.0F);
- this.setRotateAngle(UpperlegL, -1.1426670612806875F, -0.32201324699295375F, 0.0F);
- this.EarL = new ModelRenderer(this, 0, 0);
- this.EarL.setRotationPoint(5.1F, -2.5F, 3.0F);
- this.EarL.addBox(0.0F, 0.0F, 0.0F, 0, 7, 4, 0.0F);
- this.setRotateAngle(EarL, -0.4553564018453205F, 0.0F, 0.0F);
- this.EarLlobe = new ModelRenderer(this, 0, 0);
- this.EarLlobe.setRotationPoint(0.1F, 2.1F, 1.1F);
- this.EarLlobe.addBox(0.0F, 0.0F, 0.0F, 0, 5, 4, 0.0F);
- this.setRotateAngle(EarLlobe, -0.18203784098300857F, 0.0F, 0.0F);
- this.Spine = new ModelRenderer(this, 63, 35);
- this.Spine.setRotationPoint(3.0F, -6.2F, 8.2F);
- this.Spine.addBox(0.0F, 0.0F, 0.0F, 3, 23, 5, 0.0F);
- this.setRotateAngle(Spine, -0.136659280431156F, 0.0F, 0.0F);
- this.Neck = new ModelRenderer(this, 56, 63);
- this.Neck.setRotationPoint(1.1F, 2.6F, 4.7F);
- this.Neck.addBox(0.0F, 0.0F, 0.0F, 3, 3, 6, 0.0F);
- this.setRotateAngle(Neck, -1.0016444577195458F, 0.0F, 0.0F);
- this.EarR = new ModelRenderer(this, 0, 0);
- this.EarR.setRotationPoint(-0.1F, -2.4F, 3.0F);
- this.EarR.addBox(0.0F, 0.0F, 0.0F, 0, 7, 4, 0.0F);
- this.setRotateAngle(EarR, -0.4553564018453205F, 0.0F, 0.0F);
- this.EarRlobe = new ModelRenderer(this, 0, 0);
- this.EarRlobe.setRotationPoint(-0.1F, 2.0F, 1.1F);
- this.EarRlobe.addBox(0.0F, 0.0F, 0.0F, 0, 5, 4, 0.0F);
- this.setRotateAngle(EarRlobe, -0.18203784098300857F, 0.0F, 0.0F);
- this.MiddlearmR = new ModelRenderer(this, 26, 19);
- this.MiddlearmR.setRotationPoint(0.0F, 41.9F, 0.0F);
- this.MiddlearmR.addBox(0.0F, 0.0F, 0.0F, 2, 12, 1, 0.0F);
- this.setRotateAngle(MiddlearmR, 1.5128513956286849F, 0.0F, 0.0F);
- this.ShoulderL = new ModelRenderer(this, 68, 20);
- this.ShoulderL.setRotationPoint(10.2F, -13.2F, 4.3F);
- this.ShoulderL.addBox(0.0F, 0.0F, 0.0F, 4, 9, 6, 0.0F);
- this.setRotateAngle(ShoulderL, 0.0F, 0.0F, 0.22759093446006054F);
- this.UpperarmL = new ModelRenderer(this, 119, 42);
- this.UpperarmL.setRotationPoint(3.5F, -17.4F, 5.2F);
- this.UpperarmL.addBox(0.0F, 0.0F, 0.0F, 2, 42, 2, 0.0F);
- this.setRotateAngle(UpperarmL, -0.5009094953223726F, 0.40980330836826856F, -0.4553564018453205F);
- this.ShoulderR = new ModelRenderer(this, 0, 19);
- this.ShoulderR.setRotationPoint(-2.0F, -12.5F, 4.3F);
- this.ShoulderR.addBox(0.0F, 0.0F, 0.0F, 4, 9, 6, 0.0F);
- this.setRotateAngle(ShoulderR, 0.0F, 0.0F, -0.22759093446006054F);
- this.Wingfingertop_2 = new ModelRenderer(this, 107, 49);
- this.Wingfingertop_2.setRotationPoint(-1.1F, -2.7F, 9.0F);
- this.Wingfingertop_2.addBox(0.0F, 0.0F, 0.0F, 1, 38, 1, 0.0F);
- this.setRotateAngle(Wingfingertop_2, -0.2467895562319982F, 0.0F, 0.0F);
- this.WingLmiddle = new ModelRenderer(this, 0, 0);
- this.WingLmiddle.setRotationPoint(0.3F, 2.6F, 6.6F);
- this.WingLmiddle.addBox(0.0F, 0.0F, 0.0F, 0, 30, 12, 0.0F);
- this.setRotateAngle(WingLmiddle, -0.22759093446006054F, 0.0F, 0.0F);
- this.Wingfingertop_3 = new ModelRenderer(this, 111, 49);
- this.Wingfingertop_3.setRotationPoint(-0.6F, -11.9F, -5.2F);
- this.Wingfingertop_3.addBox(0.0F, 0.0F, 0.0F, 1, 36, 1, 0.0F);
- this.setRotateAngle(Wingfingertop_3, 0.17174039839624203F, 0.0F, 0.0F);
- this.BottomarmL = new ModelRenderer(this, 103, 49);
- this.BottomarmL.setRotationPoint(1.2F, 11.7F, 0.0F);
- this.BottomarmL.addBox(0.0F, 0.0F, 0.0F, 1, 20, 1, 0.0F);
- this.setRotateAngle(BottomarmL, 0.9105382707654417F, 0.0F, 0.0F);
- this.WingLbottom = new ModelRenderer(this, 0, 0);
- this.WingLbottom.setRotationPoint(0.4F, 14.9F, 15.4F);
- this.WingLbottom.addBox(0.0F, 0.0F, 0.0F, 0, 18, 9, 0.0F);
- this.setRotateAngle(WingLbottom, -0.6829473363053812F, 0.0F, 0.0F);
- this.Jaw = new ModelRenderer(this, 60, 16);
- this.Jaw.setRotationPoint(1.0F, 6.4F, -0.2F);
- this.Jaw.addBox(0.0F, 0.0F, 0.0F, 3, 1, 4, 0.0F);
- this.setRotateAngle(Jaw, 0.5462880558742251F, 0.0F, 0.0F);
- this.WingRtop = new ModelRenderer(this, 79, 49);
- this.WingRtop.setRotationPoint(0.9F, 7.4F, 2.1F);
- this.WingRtop.addBox(0.0F, 0.0F, 0.0F, 1, 34, 9, 0.0F);
- this.setRotateAngle(WingRtop, -0.045553093477052F, 0.0F, 0.0F);
- this.FingerLtop = new ModelRenderer(this, 67, 0);
- this.FingerLtop.setRotationPoint(1.0F, -0.1F, -1.6F);
- this.FingerLtop.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
- this.BottomlegR = new ModelRenderer(this, 108, 29);
- this.BottomlegR.setRotationPoint(1.8F, 13.0F, 6.3F);
- this.BottomlegR.addBox(0.0F, 0.0F, 0.0F, 4, 9, 4, 0.0F);
- this.setRotateAngle(BottomlegR, 1.593485607070823F, 0.0F, 0.0F);
- this.FootbaseL = new ModelRenderer(this, 87, 33);
- this.FootbaseL.setRotationPoint(0.1F, 6.3F, -9.8F);
- this.FootbaseL.addBox(0.0F, 0.0F, 0.0F, 3, 3, 13, 0.0F);
- this.setRotateAngle(FootbaseL, 0.033510321638291124F, 0.0F, 0.0F);
- this.Stomach = new ModelRenderer(this, 88, 20);
- this.Stomach.setRotationPoint(10.6F, 3.6F, 0.4F);
- this.Stomach.addBox(0.0F, 0.0F, 0.0F, 9, 10, 3, 0.0F);
- this.setRotateAngle(Stomach, 0.18203784098300857F, 0.0F, 3.141592653589793F);
- this.Neckbottom = new ModelRenderer(this, 44, 82);
- this.Neckbottom.setRotationPoint(-2.8F, 1.1F, 2.2F);
- this.Neckbottom.addBox(0.0F, 0.0F, 0.0F, 8, 4, 12, 0.0F);
- this.setRotateAngle(Neckbottom, -0.5009094953223726F, 0.0F, 0.0F);
- this.BottomarmR = new ModelRenderer(this, 122, 0);
- this.BottomarmR.setRotationPoint(1.2F, 11.7F, 0.0F);
- this.BottomarmR.addBox(0.0F, 0.0F, 0.0F, 1, 20, 1, 0.0F);
- this.setRotateAngle(BottomarmR, 0.9105382707654417F, 0.0F, 0.0F);
- this.UpperarmR = new ModelRenderer(this, 24, 41);
- this.UpperarmR.setRotationPoint(-8.5F, -18.6F, 5.2F);
- this.UpperarmR.addBox(0.0F, 0.0F, 0.0F, 2, 42, 2, 0.0F);
- this.setRotateAngle(UpperarmR, -0.5009094953223726F, -0.40980330836826856F, 0.4553564018453205F);
- this.WingRbottom = new ModelRenderer(this, 0, 0);
- this.WingRbottom.setRotationPoint(0.4F, 14.9F, 15.4F);
- this.WingRbottom.addBox(0.0F, 0.0F, 0.0F, 0, 18, 9, 0.0F);
- this.setRotateAngle(WingRbottom, -0.6829473363053812F, 0.0F, 0.0F);
- this.WingRtop.addChild(this.Wingfingertop);
- this.WingRbottom.addChild(this.Wingfingertop_1);
- this.Torso.addChild(this.UpperlegR);
- this.UpperarmL.addChild(this.MiddlearmL);
- this.Torso.addChild(this.Chest);
- this.FingerLtop.addChild(this.FingerLbottom);
- this.Stomach.addChild(this.Stomachbottom);
- this.FingerRtop.addChild(this.FingerRbottom);
- this.WingRtop.addChild(this.WingRmiddle);
- this.Lowerback.addChild(this.Back);
- this.MiddlearmR.addChild(this.FingerRtop);
- this.BottomlegR.addChild(this.FootbaseR);
- this.UpperlegL.addChild(this.BottomlegL);
- this.UpperarmL.addChild(this.WingLtop);
- this.Torso.addChild(this.UpperlegL);
- this.Headcenter.addChild(this.EarL);
- this.EarL.addChild(this.EarLlobe);
- this.Chest.addChild(this.Spine);
- this.Headcenter.addChild(this.Neck);
- this.Headcenter.addChild(this.EarR);
- this.EarR.addChild(this.EarRlobe);
- this.UpperarmR.addChild(this.MiddlearmR);
- this.Torso.addChild(this.ShoulderL);
- this.Torso.addChild(this.ShoulderR);
- this.WingLtop.addChild(this.Wingfingertop_2);
- this.WingLtop.addChild(this.WingLmiddle);
- this.WingLbottom.addChild(this.Wingfingertop_3);
- this.MiddlearmL.addChild(this.BottomarmL);
- this.WingLtop.addChild(this.WingLbottom);
- this.Headcenter.addChild(this.Jaw);
- this.UpperarmR.addChild(this.WingRtop);
- this.MiddlearmL.addChild(this.FingerLtop);
- this.UpperlegR.addChild(this.BottomlegR);
- this.BottomlegL.addChild(this.FootbaseL);
- this.Torso.addChild(this.Stomach);
- this.Neck.addChild(this.Neckbottom);
- this.MiddlearmR.addChild(this.BottomarmR);
- this.WingRtop.addChild(this.WingRbottom);
- }
- @Override
- public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
- this.Lowerback.render(f5);
- this.Headcenter.render(f5);
- this.Torso.render(f5);
- this.UpperarmL.render(f5);
- this.UpperarmR.render(f5);
- }
- /**
- * This is a helper function from Tabula to set the rotation of model
- * parts
- */
- public void setRotateAngle(float f, float f1, float f2, float f3)
- {
- super;setRotationAngles(f, f1, f2, f3, f4, f5, entity);
- this.Headcenter.rotateAngleY = f3 / (180F / (float)Math.PI);
- this.Headcenter.rotateAngleX = f4 / (180F / (float)Math.PI);
- this.UpperarmL.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
- this.UpperarmR.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
- this.UpperlegL.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;
- this.UpperlegR.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement