コード例 #1
0
  static {
    try {
      SwitchHelperDirection15.a[EnumDirection.UP.ordinal()] = 1;
    } catch (NoSuchFieldError nosuchfielderror) {;
    }

    try {
      SwitchHelperDirection15.a[EnumDirection.NORTH.ordinal()] = 2;
    } catch (NoSuchFieldError nosuchfielderror1) {;
    }

    try {
      SwitchHelperDirection15.a[EnumDirection.SOUTH.ordinal()] = 3;
    } catch (NoSuchFieldError nosuchfielderror2) {;
    }

    try {
      SwitchHelperDirection15.a[EnumDirection.WEST.ordinal()] = 4;
    } catch (NoSuchFieldError nosuchfielderror3) {;
    }

    try {
      SwitchHelperDirection15.a[EnumDirection.EAST.ordinal()] = 5;
    } catch (NoSuchFieldError nosuchfielderror4) {;
    }
  }
コード例 #2
0
    static {
      try {
        a[EnumDirection.NORTH.ordinal()] = 1;
      } catch (NoSuchFieldError var4) {;
      }

      try {
        a[EnumDirection.SOUTH.ordinal()] = 2;
      } catch (NoSuchFieldError var3) {;
      }

      try {
        a[EnumDirection.WEST.ordinal()] = 3;
      } catch (NoSuchFieldError var2) {;
      }

      try {
        a[EnumDirection.EAST.ordinal()] = 4;
      } catch (NoSuchFieldError var1) {;
      }
    }
コード例 #3
0
ファイル: Entity.java プロジェクト: randyzingle/javaalg
  public void aq() {
    if (this.portalCooldown > 0) {
      this.portalCooldown = this.ar();
    } else {
      double d0 = this.lastX - this.locX;
      double d1 = this.lastZ - this.locZ;

      if (!this.world.isStatic && !this.ak) {
        int i;

        if (MathHelper.e((float) d0) > MathHelper.e((float) d1)) {
          i = d0 > 0.0D ? EnumDirection.WEST.b() : EnumDirection.EAST.b();
        } else {
          i = d1 > 0.0D ? EnumDirection.NORTH.b() : EnumDirection.SOUTH.b();
        }

        this.an = i;
      }

      this.ak = true;
    }
  }
コード例 #4
0
ファイル: BlockLever.java プロジェクト: chums122/Spigot
 static {
   try {
     c[EnumDirection.EnumAxis.X.ordinal()] = 1;
   } catch (NoSuchFieldError localNoSuchFieldError1) {
   }
   try {
     c[EnumDirection.EnumAxis.Z.ordinal()] = 2;
   } catch (NoSuchFieldError localNoSuchFieldError2) {
   }
   b = new int[BlockLever.EnumLeverPosition.values().length];
   try {
     b[BlockLever.EnumLeverPosition.EAST.ordinal()] = 1;
   } catch (NoSuchFieldError localNoSuchFieldError3) {
   }
   try {
     b[BlockLever.EnumLeverPosition.WEST.ordinal()] = 2;
   } catch (NoSuchFieldError localNoSuchFieldError4) {
   }
   try {
     b[BlockLever.EnumLeverPosition.SOUTH.ordinal()] = 3;
   } catch (NoSuchFieldError localNoSuchFieldError5) {
   }
   try {
     b[BlockLever.EnumLeverPosition.NORTH.ordinal()] = 4;
   } catch (NoSuchFieldError localNoSuchFieldError6) {
   }
   try {
     b[BlockLever.EnumLeverPosition.UP_Z.ordinal()] = 5;
   } catch (NoSuchFieldError localNoSuchFieldError7) {
   }
   try {
     b[BlockLever.EnumLeverPosition.UP_X.ordinal()] = 6;
   } catch (NoSuchFieldError localNoSuchFieldError8) {
   }
   try {
     b[BlockLever.EnumLeverPosition.DOWN_X.ordinal()] = 7;
   } catch (NoSuchFieldError localNoSuchFieldError9) {
   }
   try {
     b[BlockLever.EnumLeverPosition.DOWN_Z.ordinal()] = 8;
   } catch (NoSuchFieldError localNoSuchFieldError10) {
   }
   a = new int[EnumDirection.values().length];
   try {
     a[EnumDirection.DOWN.ordinal()] = 1;
   } catch (NoSuchFieldError localNoSuchFieldError11) {
   }
   try {
     a[EnumDirection.UP.ordinal()] = 2;
   } catch (NoSuchFieldError localNoSuchFieldError12) {
   }
   try {
     a[EnumDirection.NORTH.ordinal()] = 3;
   } catch (NoSuchFieldError localNoSuchFieldError13) {
   }
   try {
     a[EnumDirection.SOUTH.ordinal()] = 4;
   } catch (NoSuchFieldError localNoSuchFieldError14) {
   }
   try {
     a[EnumDirection.WEST.ordinal()] = 5;
   } catch (NoSuchFieldError localNoSuchFieldError15) {
   }
   try {
     a[EnumDirection.EAST.ordinal()] = 6;
   } catch (NoSuchFieldError localNoSuchFieldError16) {
   }
 }