303

Untitled

303
May 10th, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.18 KB | None | 0 0
  1.   public void bounce(rj entity, int i, int j, int k) {
  2.     et world = ModLoader.getMinecraftInstance().e;
  3.     //ja sand = new ja(world);
  4.     if ((entity instanceof kw || entity instanceof gz || entity instanceof ja
  5.       || entity instanceof pw || entity instanceof EntityC4Primed) && entity.aO < 2.0D && !entity.t()) {
  6.  
  7.       int count = this.countAdjacent(entity.aG, i, j, k);
  8.       double mult = Math.min(bounceCap, getBounceFactor(count));
  9.       double ymot;
  10.  
  11.       if (entity instanceof gh && !mod_PlasticCraft.isWearingFallBoots) {
  12.         ymot = 1.0;
  13.       } else if (entity instanceof kw && !((kw)entity).ax) {
  14.         ymot = 1.4;
  15.       } else if (entity instanceof ja || entity instanceof pw || entity instanceof EntityC4Primed) {
  16.         ymot = 1.2;
  17.       } else {
  18.         ymot = 2.0;
  19.       }
  20.  
  21.       entity.aO = initfac * ymot * mult;
  22.       entity.bi = -(float)getHeightForVelocity(entity.aO);
  23.       if (entity instanceof ja) {
  24.           ja sand = (ja)entity;
  25.           sand.b = -(int)getTicksUntilRebound(entity.aO);
  26.           sand.aV = true;
  27.       }
  28.       entity.aN *= horizDamp * getBounceFactor(count);
  29.       entity.aP *= horizDamp * getBounceFactor(count);
  30.     }
  31.   }
Advertisement
Add Comment
Please, Sign In to add comment