h31ix

Untitled

Jul 5th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. public GroupDataEntity a(GroupDataEntity groupdataentity) {
  2. Object object = super.a(groupdataentity);
  3. boolean flag = false;
  4. int i = 0;
  5. int j;
  6.  
  7. if (object instanceof GroupDataHorse) {
  8. j = ((GroupDataHorse) object).a;
  9. i = ((GroupDataHorse) object).b & 255 | this.random.nextInt(5) << 8;
  10. } else {
  11. if (this.random.nextInt(10) == 0) {
  12. j = 1;
  13. } else {
  14. int k = this.random.nextInt(7);
  15. int l = this.random.nextInt(5);
  16.  
  17. j = 0;
  18. i = k | l << 8;
  19. }
  20.  
  21. object = new GroupDataHorse(j, i);
  22. }
  23.  
  24. this.p(j);
  25. this.q(i);
  26. if (this.random.nextInt(5) == 0) {
  27. this.setAge(-24000);
  28. }
  29.  
  30. if (j != 4 && j != 3) {
  31. this.a(GenericAttributes.a).a((double) this.cL());
  32. if (j == 0) {
  33. this.a(GenericAttributes.d).a(this.cN());
  34. } else {
  35. this.a(GenericAttributes.d).a(0.17499999701976776D);
  36. }
  37. } else {
  38. this.a(GenericAttributes.a).a(15.0D);
  39. this.a(GenericAttributes.d).a(0.20000000298023224D);
  40. }
  41.  
  42. if (j != 2 && j != 1) {
  43. this.a(bv).a(this.cM());
  44. } else {
  45. this.a(bv).a(0.5D);
  46. }
  47.  
  48. this.setHealth(this.getMaxHealth());
  49. return (GroupDataEntity) object;
  50. }
  51.  
  52. protected boolean bb() {
  53. return true;
  54. }
  55.  
  56. public void u(int i) {
  57. if (i < 0) {
  58. i = 0;
  59. } else {
  60. this.bI = true;
  61. this.cK();
  62. }
  63.  
  64. if (i >= 90) {
  65. this.bt = 1.0F;
  66. } else {
  67. this.bt = 0.4F + 0.4F * (float) i / 90.0F;
  68. }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment