Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void bounce(rj entity, int i, int j, int k) {
- et world = ModLoader.getMinecraftInstance().e;
- //ja sand = new ja(world);
- if ((entity instanceof kw || entity instanceof gz || entity instanceof ja
- || entity instanceof pw || entity instanceof EntityC4Primed) && entity.aO < 2.0D && !entity.t()) {
- int count = this.countAdjacent(entity.aG, i, j, k);
- double mult = Math.min(bounceCap, getBounceFactor(count));
- double ymot;
- if (entity instanceof gh && !mod_PlasticCraft.isWearingFallBoots) {
- ymot = 1.0;
- } else if (entity instanceof kw && !((kw)entity).ax) {
- ymot = 1.4;
- } else if (entity instanceof ja || entity instanceof pw || entity instanceof EntityC4Primed) {
- ymot = 1.2;
- } else {
- ymot = 2.0;
- }
- entity.aO = initfac * ymot * mult;
- entity.bi = -(float)getHeightForVelocity(entity.aO);
- if (entity instanceof ja) {
- ja sand = (ja)entity;
- sand.b = -(int)getTicksUntilRebound(entity.aO);
- sand.aV = true;
- }
- entity.aN *= horizDamp * getBounceFactor(count);
- entity.aP *= horizDamp * getBounceFactor(count);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment