Advertisement
Guest User

Untitled

a guest
Dec 30th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.63 KB | None | 0 0
  1. package mod.mcreator;
  2.  
  3. import net.minecraftforge.fml.relauncher.SideOnly;
  4. import net.minecraftforge.fml.relauncher.Side;
  5. import net.minecraftforge.fml.common.registry.EntityRegistry;
  6. import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
  7. import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
  8. import net.minecraftforge.fml.common.event.FMLInitializationEvent;
  9. import net.minecraftforge.fml.client.registry.RenderingRegistry;
  10.  
  11. import net.minecraft.world.biome.Biome;
  12. import net.minecraft.world.World;
  13. import net.minecraft.util.registry.RegistryNamespaced;
  14. import net.minecraft.util.math.MathHelper;
  15. import net.minecraft.util.ResourceLocation;
  16. import net.minecraft.util.EnumHand;
  17. import net.minecraft.util.DamageSource;
  18. import net.minecraft.item.ItemStack;
  19. import net.minecraft.item.Item;
  20. import net.minecraft.entity.player.EntityPlayer;
  21. import net.minecraft.entity.effect.EntityLightningBolt;
  22. import net.minecraft.entity.boss.EntityDragon;
  23. import net.minecraft.entity.ai.EntityAIWatchClosest;
  24. import net.minecraft.entity.ai.EntityAIWander;
  25. import net.minecraft.entity.ai.EntityAISwimming;
  26. import net.minecraft.entity.ai.EntityAILookIdle;
  27. import net.minecraft.entity.SharedMonsterAttributes;
  28. import net.minecraft.entity.EnumCreatureType;
  29. import net.minecraft.entity.EntityCreature;
  30. import net.minecraft.entity.Entity;
  31. import net.minecraft.client.renderer.entity.RenderLiving;
  32. import net.minecraft.client.model.ModelRenderer;
  33. import net.minecraft.client.model.ModelBase;
  34. import net.minecraft.client.Minecraft;
  35.  
  36. import java.util.Random;
  37. import java.util.Iterator;
  38. import java.util.ArrayList;
  39.  
  40. @SuppressWarnings("unchecked")
  41. public class mcreator_testenvironmentmod {
  42.  
  43. public int mobid = 0;
  44. public static Object instance;
  45.  
  46. public void load(FMLInitializationEvent event) {
  47. }
  48.  
  49. public void generateNether(World world, Random random, int chunkX, int chunkZ) {
  50. }
  51.  
  52. public void generateSurface(World world, Random random, int chunkX, int chunkZ) {
  53. }
  54.  
  55. public int addFuel(ItemStack fuel) {
  56. return 0;
  57. }
  58.  
  59. @SideOnly(Side.CLIENT)
  60. public void registerRenderers() {
  61. RenderLiving customRender = new RenderLiving(Minecraft.getMinecraft().getRenderManager(), new mcreator_testenvironmentmod.ModelVargheist(), 0) {
  62. protected ResourceLocation getEntityTexture(Entity par1Entity) {
  63. return new ResourceLocation("testenvironmentmodtexturemap--.png");
  64. }
  65. };
  66. RenderingRegistry.registerEntityRenderingHandler(mcreator_testenvironmentmod.Entitytestenvironmentmod.class, customRender);
  67.  
  68. }
  69.  
  70. public void serverLoad(FMLServerStartingEvent event) {
  71. }
  72.  
  73. public void preInit(FMLPreInitializationEvent event) {
  74. int entityID = MathHelper.getRandomUUID().hashCode();
  75. mobid = entityID;
  76. EntityRegistry.registerModEntity(new ResourceLocation("testenvironmentmod:testenvironmentmod"), mcreator_testenvironmentmod.Entitytestenvironmentmod.class, "testenvironmentmod",
  77. entityID, instance, 64, 1, true, (0 << 16) + (0 << 8) + 0, (255 << 16) + (51 << 8) + 51);
  78. EntityRegistry.addSpawn(mcreator_testenvironmentmod.Entitytestenvironmentmod.class, 20, 3, 30, EnumCreatureType.MONSTER,
  79. Biome.REGISTRY.getObject(new ResourceLocation("hell")));
  80.  
  81. }
  82.  
  83. public static Biome[] clean(net.minecraft.util.registry.RegistryNamespaced<ResourceLocation, Biome> in) {
  84. Iterator<Biome> itr = in.iterator();
  85. ArrayList<Biome> ls = new ArrayList<Biome>();
  86. while (itr.hasNext()) {
  87. ls.add(itr.next());
  88. }
  89. return ls.toArray(new Biome[ls.size()]);
  90. }
  91.  
  92. public static class Entitytestenvironmentmod extends EntityCreature {
  93. World world = null;
  94.  
  95. public Entitytestenvironmentmod(World var1) {
  96. super(var1);
  97. world = var1;
  98. experienceValue = 7;
  99. this.isImmuneToFire = true;
  100. addRandomArmor();
  101. setNoAI(!true);
  102. this.tasks.addTask(0, new EntityAISwimming(this));
  103. this.tasks.addTask(6, new EntityAIWander(this, 1.0D));
  104. this.tasks.addTask(8, new EntityAILookIdle(this));
  105. this.tasks.addTask(1, new EntityAIWander(this, 0.8D));
  106. this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityDragon.class, 6.0F));
  107.  
  108. }
  109.  
  110. protected void applyEntityAttributes() {
  111. super.applyEntityAttributes();
  112. this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.65D);
  113. this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20D);
  114. if (this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) != null)
  115. this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(7D);
  116. }
  117.  
  118. protected void addRandomArmor() {
  119.  
  120. }
  121.  
  122. @Override
  123. protected Item getDropItem() {
  124. return null;
  125. }
  126.  
  127. @Override
  128. protected net.minecraft.util.SoundEvent getAmbientSound() {
  129. return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("entity.wolf.growl"));
  130. }
  131.  
  132. @Override
  133. protected net.minecraft.util.SoundEvent getHurtSound(DamageSource ds) {
  134. return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.hurt"));
  135. }
  136.  
  137. @Override
  138. protected net.minecraft.util.SoundEvent getDeathSound() {
  139. return (net.minecraft.util.SoundEvent) net.minecraft.util.SoundEvent.REGISTRY.getObject(new ResourceLocation("game.neutral.die"));
  140. }
  141.  
  142. @Override
  143. public void onStruckByLightning(EntityLightningBolt entityLightningBolt) {
  144. super.onStruckByLightning(entityLightningBolt);
  145. int i = (int) this.posX;
  146. int j = (int) this.posY;
  147. int k = (int) this.posZ;
  148. Entity entity = this;
  149.  
  150. }
  151.  
  152. @Override
  153. public void fall(float l, float d) {
  154. super.fall(l, d);
  155. int i = (int) this.posX;
  156. int j = (int) this.posY;
  157. int k = (int) this.posZ;
  158. super.fall(l, d);
  159. Entity entity = this;
  160.  
  161. }
  162.  
  163. @Override
  164. public void onDeath(DamageSource source) {
  165. super.onDeath(source);
  166. int i = (int) this.posX;
  167. int j = (int) this.posY;
  168. int k = (int) this.posZ;
  169. Entity entity = this;
  170.  
  171. }
  172.  
  173. @Override
  174. public boolean processInteract(EntityPlayer entity, EnumHand hand) {
  175. super.processInteract(entity, hand);
  176. int i = (int) this.posX;
  177. int j = (int) this.posY;
  178. int k = (int) this.posZ;
  179.  
  180. return true;
  181. }
  182.  
  183. @Override
  184. protected float getSoundVolume() {
  185. return 1.0F;
  186. }
  187.  
  188. }
  189.  
  190. /**
  191. * Vargheist - Alex Created using Tabula 7.0.0
  192. */
  193. public static class ModelVargheist extends ModelBase {
  194. public ModelRenderer Torso;
  195. public ModelRenderer Lowerback;
  196. public ModelRenderer UpperlegR;
  197. public ModelRenderer UpperlegL;
  198. public ModelRenderer Chest;
  199. public ModelRenderer ShoulderR;
  200. public ModelRenderer ShoulderL;
  201. public ModelRenderer Stomach;
  202. public ModelRenderer BottomlegR;
  203. public ModelRenderer FootbaseR;
  204. public ModelRenderer BottomlegL;
  205. public ModelRenderer FootbaseL;
  206. public ModelRenderer Spine;
  207. public ModelRenderer Stomachbottom;
  208. public ModelRenderer Back;
  209. public ModelRenderer UpperarmR;
  210. public ModelRenderer UpperarmL;
  211. public ModelRenderer MiddlearmR;
  212. public ModelRenderer WingRtop;
  213. public ModelRenderer BottomarmR;
  214. public ModelRenderer FingerRtop;
  215. public ModelRenderer FingerRbottom;
  216. public ModelRenderer WingRmiddle;
  217. public ModelRenderer WingRbottom;
  218. public ModelRenderer Wingfingertop;
  219. public ModelRenderer Wingfingertop_1;
  220. public ModelRenderer MiddlearmL;
  221. public ModelRenderer WingLtop;
  222. public ModelRenderer BottomarmL;
  223. public ModelRenderer FingerLtop;
  224. public ModelRenderer FingerLbottom;
  225. public ModelRenderer WingLmiddle;
  226. public ModelRenderer WingLbottom;
  227. public ModelRenderer Wingfingertop_2;
  228. public ModelRenderer Wingfingertop_3;
  229. public ModelRenderer Headcenter;
  230. public ModelRenderer EarR;
  231. public ModelRenderer EarL;
  232. public ModelRenderer Neck;
  233. public ModelRenderer Jaw;
  234. public ModelRenderer EarRlobe;
  235. public ModelRenderer EarLlobe;
  236. public ModelRenderer Neckbottom;
  237.  
  238. public ModelVargheist() {
  239. this.textureWidth = 128;
  240. this.textureHeight = 128;
  241. this.Wingfingertop = new ModelRenderer(this, 32, 41);
  242. this.Wingfingertop.setRotationPoint(-1.1F, -2.7F, 9.0F);
  243. this.Wingfingertop.addBox(0.0F, 0.0F, 0.0F, 1, 38, 1, 0.0F);
  244. this.setRotateAngle(Wingfingertop, -0.2467895562319982F, 0.0F, 0.0F);
  245. this.Wingfingertop_1 = new ModelRenderer(this, 99, 49);
  246. this.Wingfingertop_1.setRotationPoint(-0.6F, -11.9F, -5.2F);
  247. this.Wingfingertop_1.addBox(0.0F, 0.0F, 0.0F, 1, 36, 1, 0.0F);
  248. this.setRotateAngle(Wingfingertop_1, 0.17174039839624203F, 0.0F, 0.0F);
  249. this.Lowerback = new ModelRenderer(this, 42, 0);
  250. this.Lowerback.setRotationPoint(4.2F, -8.7F, 15.0F);
  251. this.Lowerback.addBox(0.0F, 0.0F, -0.3F, 11, 10, 3, 0.0F);
  252. this.setRotateAngle(Lowerback, 0.027925268031909273F, 3.096039560112741F, 0.0F);
  253. this.UpperlegR = new ModelRenderer(this, 70, 0);
  254. this.UpperlegR.setRotationPoint(-0.5F, 4.7F, 8.5F);
  255. this.UpperlegR.addBox(0.0F, 0.0F, 0.0F, 6, 13, 7, 0.0F);
  256. this.setRotateAngle(UpperlegR, -1.1426670612806875F, 0.27314402793711257F, 0.0F);
  257. this.MiddlearmL = new ModelRenderer(this, 79, 45);
  258. this.MiddlearmL.setRotationPoint(0.0F, 41.9F, 0.0F);
  259. this.MiddlearmL.addBox(0.0F, 0.0F, 0.0F, 2, 12, 1, 0.0F);
  260. this.setRotateAngle(MiddlearmL, 1.5128513956286849F, 0.0F, 0.0F);
  261. this.Headcenter = new ModelRenderer(this, 0, 54);
  262. this.Headcenter.setRotationPoint(-3.8F, -25.2F, 1.7F);
  263. this.Headcenter.addBox(0.0F, 0.0F, 0.0F, 5, 6, 5, 0.0F);
  264. this.setRotateAngle(Headcenter, 0.091106186954104F, 0.0F, 0.0F);
  265. this.Chest = new ModelRenderer(this, 34, 13);
  266. this.Chest.setRotationPoint(1.7F, -5.9F, 2.1F);
  267. this.Chest.addBox(0.0F, 0.0F, 0.0F, 9, 17, 8, 0.0F);
  268. this.FingerLbottom = new ModelRenderer(this, 89, 0);
  269. this.FingerLbottom.setRotationPoint(-0.1F, 1.4F, -1.3F);
  270. this.FingerLbottom.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
  271. this.setRotateAngle(FingerLbottom, 0.8196066167365371F, 0.0F, 0.0F);
  272. this.Torso = new ModelRenderer(this, 0, 0);
  273. this.Torso.setRotationPoint(-7.6F, -4.2F, 3.5F);
  274. this.Torso.addBox(0.0F, 0.0F, 1.0F, 13, 11, 8, 0.0F);
  275. this.setRotateAngle(Torso, 0.44401176170735746F, 0.0F, 0.0F);
  276. this.Stomachbottom = new ModelRenderer(this, 36, 38);
  277. this.Stomachbottom.setRotationPoint(0.0F, -7.5F, 2.1F);
  278. this.Stomachbottom.addBox(0.0F, 0.0F, 0.0F, 9, 10, 3, 0.0F);
  279. this.setRotateAngle(Stomachbottom, -0.31869712141416456F, 0.0F, 0.0F);
  280. this.FingerRbottom = new ModelRenderer(this, 34, 0);
  281. this.FingerRbottom.setRotationPoint(-0.1F, 1.4F, -1.3F);
  282. this.FingerRbottom.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
  283. this.setRotateAngle(FingerRbottom, 0.8196066167365371F, 0.0F, 0.0F);
  284. this.WingRmiddle = new ModelRenderer(this, 0, 0);
  285. this.WingRmiddle.setRotationPoint(0.3F, 2.6F, 6.6F);
  286. this.WingRmiddle.addBox(0.0F, 0.0F, 0.0F, 0, 30, 12, 0.0F);
  287. this.setRotateAngle(WingRmiddle, -0.22759093446006054F, 0.0F, 0.0F);
  288. this.Back = new ModelRenderer(this, 0, 41);
  289. this.Back.setRotationPoint(0.9F, -9.2F, 3.4F);
  290. this.Back.addBox(0.0F, 0.0F, 0.0F, 9, 10, 3, 0.0F);
  291. this.setRotateAngle(Back, -0.3797836452339661F, 0.0F, 0.0F);
  292. this.FingerRtop = new ModelRenderer(this, 0, 0);
  293. this.FingerRtop.setRotationPoint(1.0F, -0.1F, -1.6F);
  294. this.FingerRtop.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
  295. this.FootbaseR = new ModelRenderer(this, 7, 25);
  296. this.FootbaseR.setRotationPoint(0.9F, 6.6F, -9.2F);
  297. this.FootbaseR.addBox(0.0F, 0.0F, 0.0F, 3, 3, 13, 0.0F);
  298. this.setRotateAngle(FootbaseR, 0.05794493116621174F, 0.0F, 0.0F);
  299. this.BottomlegL = new ModelRenderer(this, 84, 33);
  300. this.BottomlegL.setRotationPoint(0.3F, 13.0F, 6.3F);
  301. this.BottomlegL.addBox(0.0F, 0.0F, 0.0F, 4, 9, 4, 0.0F);
  302. this.setRotateAngle(BottomlegL, 1.593485607070823F, 0.0F, 0.0F);
  303. this.WingLtop = new ModelRenderer(this, 36, 51);
  304. this.WingLtop.setRotationPoint(0.9F, 7.4F, 2.1F);
  305. this.WingLtop.addBox(0.0F, 0.0F, 0.0F, 1, 34, 9, 0.0F);
  306. this.setRotateAngle(WingLtop, -0.045553093477052F, 0.0F, 0.0F);
  307. this.UpperlegL = new ModelRenderer(this, 96, 0);
  308. this.UpperlegL.setRotationPoint(7.9F, 4.7F, 6.3F);
  309. this.UpperlegL.addBox(0.0F, 0.0F, 0.0F, 6, 13, 7, 0.0F);
  310. this.setRotateAngle(UpperlegL, -1.1426670612806875F, -0.32201324699295375F, 0.0F);
  311. this.EarL = new ModelRenderer(this, 0, 0);
  312. this.EarL.setRotationPoint(5.1F, -2.5F, 3.0F);
  313. this.EarL.addBox(0.0F, 0.0F, 0.0F, 0, 7, 4, 0.0F);
  314. this.setRotateAngle(EarL, -0.4553564018453205F, 0.0F, 0.0F);
  315. this.EarLlobe = new ModelRenderer(this, 0, 0);
  316. this.EarLlobe.setRotationPoint(0.1F, 2.1F, 1.1F);
  317. this.EarLlobe.addBox(0.0F, 0.0F, 0.0F, 0, 5, 4, 0.0F);
  318. this.setRotateAngle(EarLlobe, -0.18203784098300857F, 0.0F, 0.0F);
  319. this.Spine = new ModelRenderer(this, 63, 35);
  320. this.Spine.setRotationPoint(3.0F, -6.2F, 8.2F);
  321. this.Spine.addBox(0.0F, 0.0F, 0.0F, 3, 23, 5, 0.0F);
  322. this.setRotateAngle(Spine, -0.136659280431156F, 0.0F, 0.0F);
  323. this.Neck = new ModelRenderer(this, 56, 63);
  324. this.Neck.setRotationPoint(1.1F, 2.6F, 4.7F);
  325. this.Neck.addBox(0.0F, 0.0F, 0.0F, 3, 3, 6, 0.0F);
  326. this.setRotateAngle(Neck, -1.0016444577195458F, 0.0F, 0.0F);
  327. this.EarR = new ModelRenderer(this, 0, 0);
  328. this.EarR.setRotationPoint(-0.1F, -2.4F, 3.0F);
  329. this.EarR.addBox(0.0F, 0.0F, 0.0F, 0, 7, 4, 0.0F);
  330. this.setRotateAngle(EarR, -0.4553564018453205F, 0.0F, 0.0F);
  331. this.EarRlobe = new ModelRenderer(this, 0, 0);
  332. this.EarRlobe.setRotationPoint(-0.1F, 2.0F, 1.1F);
  333. this.EarRlobe.addBox(0.0F, 0.0F, 0.0F, 0, 5, 4, 0.0F);
  334. this.setRotateAngle(EarRlobe, -0.18203784098300857F, 0.0F, 0.0F);
  335. this.MiddlearmR = new ModelRenderer(this, 26, 19);
  336. this.MiddlearmR.setRotationPoint(0.0F, 41.9F, 0.0F);
  337. this.MiddlearmR.addBox(0.0F, 0.0F, 0.0F, 2, 12, 1, 0.0F);
  338. this.setRotateAngle(MiddlearmR, 1.5128513956286849F, 0.0F, 0.0F);
  339. this.ShoulderL = new ModelRenderer(this, 68, 20);
  340. this.ShoulderL.setRotationPoint(10.2F, -13.2F, 4.3F);
  341. this.ShoulderL.addBox(0.0F, 0.0F, 0.0F, 4, 9, 6, 0.0F);
  342. this.setRotateAngle(ShoulderL, 0.0F, 0.0F, 0.22759093446006054F);
  343. this.UpperarmL = new ModelRenderer(this, 119, 42);
  344. this.UpperarmL.setRotationPoint(3.5F, -17.4F, 5.2F);
  345. this.UpperarmL.addBox(0.0F, 0.0F, 0.0F, 2, 42, 2, 0.0F);
  346. this.setRotateAngle(UpperarmL, -0.5009094953223726F, 0.40980330836826856F, -0.4553564018453205F);
  347. this.ShoulderR = new ModelRenderer(this, 0, 19);
  348. this.ShoulderR.setRotationPoint(-2.0F, -12.5F, 4.3F);
  349. this.ShoulderR.addBox(0.0F, 0.0F, 0.0F, 4, 9, 6, 0.0F);
  350. this.setRotateAngle(ShoulderR, 0.0F, 0.0F, -0.22759093446006054F);
  351. this.Wingfingertop_2 = new ModelRenderer(this, 107, 49);
  352. this.Wingfingertop_2.setRotationPoint(-1.1F, -2.7F, 9.0F);
  353. this.Wingfingertop_2.addBox(0.0F, 0.0F, 0.0F, 1, 38, 1, 0.0F);
  354. this.setRotateAngle(Wingfingertop_2, -0.2467895562319982F, 0.0F, 0.0F);
  355. this.WingLmiddle = new ModelRenderer(this, 0, 0);
  356. this.WingLmiddle.setRotationPoint(0.3F, 2.6F, 6.6F);
  357. this.WingLmiddle.addBox(0.0F, 0.0F, 0.0F, 0, 30, 12, 0.0F);
  358. this.setRotateAngle(WingLmiddle, -0.22759093446006054F, 0.0F, 0.0F);
  359. this.Wingfingertop_3 = new ModelRenderer(this, 111, 49);
  360. this.Wingfingertop_3.setRotationPoint(-0.6F, -11.9F, -5.2F);
  361. this.Wingfingertop_3.addBox(0.0F, 0.0F, 0.0F, 1, 36, 1, 0.0F);
  362. this.setRotateAngle(Wingfingertop_3, 0.17174039839624203F, 0.0F, 0.0F);
  363. this.BottomarmL = new ModelRenderer(this, 103, 49);
  364. this.BottomarmL.setRotationPoint(1.2F, 11.7F, 0.0F);
  365. this.BottomarmL.addBox(0.0F, 0.0F, 0.0F, 1, 20, 1, 0.0F);
  366. this.setRotateAngle(BottomarmL, 0.9105382707654417F, 0.0F, 0.0F);
  367. this.WingLbottom = new ModelRenderer(this, 0, 0);
  368. this.WingLbottom.setRotationPoint(0.4F, 14.9F, 15.4F);
  369. this.WingLbottom.addBox(0.0F, 0.0F, 0.0F, 0, 18, 9, 0.0F);
  370. this.setRotateAngle(WingLbottom, -0.6829473363053812F, 0.0F, 0.0F);
  371. this.Jaw = new ModelRenderer(this, 60, 16);
  372. this.Jaw.setRotationPoint(1.0F, 6.4F, -0.2F);
  373. this.Jaw.addBox(0.0F, 0.0F, 0.0F, 3, 1, 4, 0.0F);
  374. this.setRotateAngle(Jaw, 0.5462880558742251F, 0.0F, 0.0F);
  375. this.WingRtop = new ModelRenderer(this, 79, 49);
  376. this.WingRtop.setRotationPoint(0.9F, 7.4F, 2.1F);
  377. this.WingRtop.addBox(0.0F, 0.0F, 0.0F, 1, 34, 9, 0.0F);
  378. this.setRotateAngle(WingRtop, -0.045553093477052F, 0.0F, 0.0F);
  379. this.FingerLtop = new ModelRenderer(this, 67, 0);
  380. this.FingerLtop.setRotationPoint(1.0F, -0.1F, -1.6F);
  381. this.FingerLtop.addBox(0.0F, 0.0F, 0.0F, 1, 1, 2, 0.0F);
  382. this.BottomlegR = new ModelRenderer(this, 108, 29);
  383. this.BottomlegR.setRotationPoint(1.8F, 13.0F, 6.3F);
  384. this.BottomlegR.addBox(0.0F, 0.0F, 0.0F, 4, 9, 4, 0.0F);
  385. this.setRotateAngle(BottomlegR, 1.593485607070823F, 0.0F, 0.0F);
  386. this.FootbaseL = new ModelRenderer(this, 87, 33);
  387. this.FootbaseL.setRotationPoint(0.1F, 6.3F, -9.8F);
  388. this.FootbaseL.addBox(0.0F, 0.0F, 0.0F, 3, 3, 13, 0.0F);
  389. this.setRotateAngle(FootbaseL, 0.033510321638291124F, 0.0F, 0.0F);
  390. this.Stomach = new ModelRenderer(this, 88, 20);
  391. this.Stomach.setRotationPoint(10.6F, 3.6F, 0.4F);
  392. this.Stomach.addBox(0.0F, 0.0F, 0.0F, 9, 10, 3, 0.0F);
  393. this.setRotateAngle(Stomach, 0.18203784098300857F, 0.0F, 3.141592653589793F);
  394. this.Neckbottom = new ModelRenderer(this, 44, 82);
  395. this.Neckbottom.setRotationPoint(-2.8F, 1.1F, 2.2F);
  396. this.Neckbottom.addBox(0.0F, 0.0F, 0.0F, 8, 4, 12, 0.0F);
  397. this.setRotateAngle(Neckbottom, -0.5009094953223726F, 0.0F, 0.0F);
  398. this.BottomarmR = new ModelRenderer(this, 122, 0);
  399. this.BottomarmR.setRotationPoint(1.2F, 11.7F, 0.0F);
  400. this.BottomarmR.addBox(0.0F, 0.0F, 0.0F, 1, 20, 1, 0.0F);
  401. this.setRotateAngle(BottomarmR, 0.9105382707654417F, 0.0F, 0.0F);
  402. this.UpperarmR = new ModelRenderer(this, 24, 41);
  403. this.UpperarmR.setRotationPoint(-8.5F, -18.6F, 5.2F);
  404. this.UpperarmR.addBox(0.0F, 0.0F, 0.0F, 2, 42, 2, 0.0F);
  405. this.setRotateAngle(UpperarmR, -0.5009094953223726F, -0.40980330836826856F, 0.4553564018453205F);
  406. this.WingRbottom = new ModelRenderer(this, 0, 0);
  407. this.WingRbottom.setRotationPoint(0.4F, 14.9F, 15.4F);
  408. this.WingRbottom.addBox(0.0F, 0.0F, 0.0F, 0, 18, 9, 0.0F);
  409. this.setRotateAngle(WingRbottom, -0.6829473363053812F, 0.0F, 0.0F);
  410. this.WingRtop.addChild(this.Wingfingertop);
  411. this.WingRbottom.addChild(this.Wingfingertop_1);
  412. this.Torso.addChild(this.UpperlegR);
  413. this.UpperarmL.addChild(this.MiddlearmL);
  414. this.Torso.addChild(this.Chest);
  415. this.FingerLtop.addChild(this.FingerLbottom);
  416. this.Stomach.addChild(this.Stomachbottom);
  417. this.FingerRtop.addChild(this.FingerRbottom);
  418. this.WingRtop.addChild(this.WingRmiddle);
  419. this.Lowerback.addChild(this.Back);
  420. this.MiddlearmR.addChild(this.FingerRtop);
  421. this.BottomlegR.addChild(this.FootbaseR);
  422. this.UpperlegL.addChild(this.BottomlegL);
  423. this.UpperarmL.addChild(this.WingLtop);
  424. this.Torso.addChild(this.UpperlegL);
  425. this.Headcenter.addChild(this.EarL);
  426. this.EarL.addChild(this.EarLlobe);
  427. this.Chest.addChild(this.Spine);
  428. this.Headcenter.addChild(this.Neck);
  429. this.Headcenter.addChild(this.EarR);
  430. this.EarR.addChild(this.EarRlobe);
  431. this.UpperarmR.addChild(this.MiddlearmR);
  432. this.Torso.addChild(this.ShoulderL);
  433. this.Torso.addChild(this.ShoulderR);
  434. this.WingLtop.addChild(this.Wingfingertop_2);
  435. this.WingLtop.addChild(this.WingLmiddle);
  436. this.WingLbottom.addChild(this.Wingfingertop_3);
  437. this.MiddlearmL.addChild(this.BottomarmL);
  438. this.WingLtop.addChild(this.WingLbottom);
  439. this.Headcenter.addChild(this.Jaw);
  440. this.UpperarmR.addChild(this.WingRtop);
  441. this.MiddlearmL.addChild(this.FingerLtop);
  442. this.UpperlegR.addChild(this.BottomlegR);
  443. this.BottomlegL.addChild(this.FootbaseL);
  444. this.Torso.addChild(this.Stomach);
  445. this.Neck.addChild(this.Neckbottom);
  446. this.MiddlearmR.addChild(this.BottomarmR);
  447. this.WingRtop.addChild(this.WingRbottom);
  448. }
  449.  
  450. @Override
  451. public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
  452. this.Lowerback.render(f5);
  453. this.Headcenter.render(f5);
  454. this.Torso.render(f5);
  455. this.UpperarmL.render(f5);
  456. this.UpperarmR.render(f5);
  457. }
  458.  
  459. /**
  460. * This is a helper function from Tabula to set the rotation of model
  461. * parts
  462. */
  463. public void setRotateAngle(float f, float f1, float f2, float f3)
  464. {
  465. super;setRotationAngles(f, f1, f2, f3, f4, f5, entity);
  466. this.Headcenter.rotateAngleY = f3 / (180F / (float)Math.PI);
  467. this.Headcenter.rotateAngleX = f4 / (180F / (float)Math.PI);
  468. this.UpperarmL.rotateAngleX = MathHelper.cos(f * 1.0F) * -1.0F * f1;
  469. this.UpperarmR.rotateAngleX = MathHelper.cos(f * 1.0F) * 1.0F * f1;
  470. this.UpperlegL.rotateAngleX = MathHelper.cos(f * 0.6662F + (float)Math.PI) * 2.0F * f1 * 0.5F;
  471. this.UpperlegR.rotateAngleX = MathHelper.cos(f * 0.6662F) * 2.0F * f1 * 0.5F;
  472. }
  473. }
  474.  
  475. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement