Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public GroupDataEntity a(GroupDataEntity groupdataentity) {
- Object object = super.a(groupdataentity);
- boolean flag = false;
- int i = 0;
- int j;
- if (object instanceof GroupDataHorse) {
- j = ((GroupDataHorse) object).a;
- i = ((GroupDataHorse) object).b & 255 | this.random.nextInt(5) << 8;
- } else {
- if (this.random.nextInt(10) == 0) {
- j = 1;
- } else {
- int k = this.random.nextInt(7);
- int l = this.random.nextInt(5);
- j = 0;
- i = k | l << 8;
- }
- object = new GroupDataHorse(j, i);
- }
- this.p(j);
- this.q(i);
- if (this.random.nextInt(5) == 0) {
- this.setAge(-24000);
- }
- if (j != 4 && j != 3) {
- this.a(GenericAttributes.a).a((double) this.cL());
- if (j == 0) {
- this.a(GenericAttributes.d).a(this.cN());
- } else {
- this.a(GenericAttributes.d).a(0.17499999701976776D);
- }
- } else {
- this.a(GenericAttributes.a).a(15.0D);
- this.a(GenericAttributes.d).a(0.20000000298023224D);
- }
- if (j != 2 && j != 1) {
- this.a(bv).a(this.cM());
- } else {
- this.a(bv).a(0.5D);
- }
- this.setHealth(this.getMaxHealth());
- return (GroupDataEntity) object;
- }
- protected boolean bb() {
- return true;
- }
- public void u(int i) {
- if (i < 0) {
- i = 0;
- } else {
- this.bI = true;
- this.cK();
- }
- if (i >= 90) {
- this.bt = 1.0F;
- } else {
- this.bt = 0.4F + 0.4F * (float) i / 90.0F;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment