static { h = Maps.newHashMap(); EntityMinecartAbstract.EnumMinecartType[] var0 = values(); int var1 = var0.length; for (int var2 = 0; var2 < var1; ++var2) { EntityMinecartAbstract.EnumMinecartType var3 = var0[var2]; h.put(Integer.valueOf(var3.a()), var3); } }
static { try { b[BlockMinecartTrackAbstract.EnumTrackPosition.ASCENDING_EAST.ordinal()] = 1; } catch (NoSuchFieldError var10) {; } try { b[BlockMinecartTrackAbstract.EnumTrackPosition.ASCENDING_WEST.ordinal()] = 2; } catch (NoSuchFieldError var9) {; } try { b[BlockMinecartTrackAbstract.EnumTrackPosition.ASCENDING_NORTH.ordinal()] = 3; } catch (NoSuchFieldError var8) {; } try { b[BlockMinecartTrackAbstract.EnumTrackPosition.ASCENDING_SOUTH.ordinal()] = 4; } catch (NoSuchFieldError var7) {; } a = new int[EntityMinecartAbstract.EnumMinecartType.values().length]; try { a[EntityMinecartAbstract.EnumMinecartType.CHEST.ordinal()] = 1; } catch (NoSuchFieldError var6) {; } try { a[EntityMinecartAbstract.EnumMinecartType.FURNACE.ordinal()] = 2; } catch (NoSuchFieldError var5) {; } try { a[EntityMinecartAbstract.EnumMinecartType.TNT.ordinal()] = 3; } catch (NoSuchFieldError var4) {; } try { a[EntityMinecartAbstract.EnumMinecartType.SPAWNER.ordinal()] = 4; } catch (NoSuchFieldError var3) {; } try { a[EntityMinecartAbstract.EnumMinecartType.HOPPER.ordinal()] = 5; } catch (NoSuchFieldError var2) {; } try { a[EntityMinecartAbstract.EnumMinecartType.COMMAND_BLOCK.ordinal()] = 6; } catch (NoSuchFieldError var1) {; } }
public static EntityMinecartAbstract a( World var0, double var1, double var3, double var5, EntityMinecartAbstract.EnumMinecartType var7) { switch (EntityMinecartAbstract.SyntheticClass_1.a[var7.ordinal()]) { case 1: return new EntityMinecartChest(var0, var1, var3, var5); case 2: return new EntityMinecartFurnace(var0, var1, var3, var5); case 3: return new EntityMinecartTNT(var0, var1, var3, var5); case 4: return new EntityMinecartMobSpawner(var0, var1, var3, var5); case 5: return new EntityMinecartHopper(var0, var1, var3, var5); case 6: return new EntityMinecartCommandBlock(var0, var1, var3, var5); default: return new EntityMinecartRideable(var0, var1, var3, var5); } }