The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
MCExtended
By Guest on 11th October 2018 07:28:34 PM | Syntax: JAVA | Views: 1



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. import java.lang.reflect.Field;
  2. import java.lang.reflect.Method;
  3. import java.util.Random;
  4.  
  5. public class gm {
  6.  
  7.    protected static Random b = new Random();
  8.    public static gm[] c = new gm[32000];
  9.    public static gm d = (new wc(0, bu.c)).a(2, 5).a("shovelIron");
  10.    public static gm e = (new au(1, bu.c)).a(2, 6).a("pickaxeIron");
  11.    public static gm f = (new ta(2, bu.c)).a(2, 7).a("hatchetIron");
  12.    public static gm g = (new ye(3)).a(5, 0).a("flintAndSteel");
  13.    public static gm h = (new yw(4, 4, false)).a(10, 0).a("apple");
  14.    public static gm i = (new qz(5)).a(5, 1).a("bow");
  15.    public static gm j = (new gm(6)).a(5, 2).a("arrow");
  16.    public static gm k = (new rx(7)).a(7, 0).a("coal");
  17.    public static gm l = (new gm(8)).a(7, 3).a("emerald");
  18.    public static gm m = (new gm(9)).a(7, 1).a("ingotIron");
  19.    public static gm n = (new gm(10)).a(7, 2).a("ingotGold");
  20.    public static gm o = (new qd(11, bu.c)).a(2, 4).a("swordIron");
  21.    public static gm p = (new qd(12, bu.a)).a(0, 4).a("swordWood");
  22.    public static gm q = (new wc(13, bu.a)).a(0, 5).a("shovelWood");
  23.    public static gm r = (new au(14, bu.a)).a(0, 6).a("pickaxeWood");
  24.    public static gm s = (new ta(15, bu.a)).a(0, 7).a("hatchetWood");
  25.    public static gm t = (new qd(16, bu.b)).a(1, 4).a("swordStone");
  26.    public static gm u = (new wc(17, bu.b)).a(1, 5).a("shovelStone");
  27.    public static gm v = (new au(18, bu.b)).a(1, 6).a("pickaxeStone");
  28.    public static gm w = (new ta(19, bu.b)).a(1, 7).a("hatchetStone");
  29.    public static gm x = (new qd(20, bu.d)).a(3, 4).a("swordDiamond");
  30.    public static gm y = (new wc(21, bu.d)).a(3, 5).a("shovelDiamond");
  31.    public static gm z = (new au(22, bu.d)).a(3, 6).a("pickaxeDiamond");
  32.    public static gm A = (new ta(23, bu.d)).a(3, 7).a("hatchetDiamond");
  33.    public static gm B = (new gm(24)).a(5, 3).h().a("stick");
  34.    public static gm C = (new gm(25)).a(7, 4).a("bowl");
  35.    public static gm D = (new bz(26, 10)).a(8, 4).a("mushroomStew");
  36.    public static gm E = (new qd(27, bu.e)).a(4, 4).a("swordGold");
  37.    public static gm F = (new wc(28, bu.e)).a(4, 5).a("shovelGold");
  38.    public static gm G = (new au(29, bu.e)).a(4, 6).a("pickaxeGold");
  39.    public static gm H = (new ta(30, bu.e)).a(4, 7).a("hatchetGold");
  40.    public static gm I = (new gm(31)).a(8, 0).a("string");
  41.    public static gm J = (new gm(32)).a(8, 1).a("feather");
  42.    public static gm K = (new gm(33)).a(8, 2).a("sulphur");
  43.    public static gm L = (new la(34, bu.a)).a(0, 8).a("hoeWood");
  44.    public static gm M = (new la(35, bu.b)).a(1, 8).a("hoeStone");
  45.    public static gm N = (new la(36, bu.c)).a(2, 8).a("hoeIron");
  46.    public static gm O = (new la(37, bu.d)).a(3, 8).a("hoeDiamond");
  47.    public static gm P = (new la(38, bu.e)).a(4, 8).a("hoeGold");
  48.    public static gm Q = (new rk(39, uu.aA.bn)).a(9, 0).a("seeds");
  49.    public static gm R = (new gm(40)).a(9, 1).a("wheat");
  50.    public static gm S = (new yw(41, 5, false)).a(9, 2).a("bread");
  51.    public static gm T = (new wa(42, 0, 0, 0)).a(0, 0).a("helmetCloth");
  52.    public static gm U = (new wa(43, 0, 0, 1)).a(0, 1).a("chestplateCloth");
  53.    public static gm V = (new wa(44, 0, 0, 2)).a(0, 2).a("leggingsCloth");
  54.    public static gm W = (new wa(45, 0, 0, 3)).a(0, 3).a("bootsCloth");
  55.    public static gm X = (new wa(46, 1, 1, 0)).a(1, 0).a("helmetChain");
  56.    public static gm Y = (new wa(47, 1, 1, 1)).a(1, 1).a("chestplateChain");
  57.    public static gm Z = (new wa(48, 1, 1, 2)).a(1, 2).a("leggingsChain");
  58.    public static gm aa = (new wa(49, 1, 1, 3)).a(1, 3).a("bootsChain");
  59.    public static gm ab = (new wa(50, 2, 2, 0)).a(2, 0).a("helmetIron");
  60.    public static gm ac = (new wa(51, 2, 2, 1)).a(2, 1).a("chestplateIron");
  61.    public static gm ad = (new wa(52, 2, 2, 2)).a(2, 2).a("leggingsIron");
  62.    public static gm ae = (new wa(53, 2, 2, 3)).a(2, 3).a("bootsIron");
  63.    public static gm af = (new wa(54, 3, 3, 0)).a(3, 0).a("helmetDiamond");
  64.    public static gm ag = (new wa(55, 3, 3, 1)).a(3, 1).a("chestplateDiamond");
  65.    public static gm ah = (new wa(56, 3, 3, 2)).a(3, 2).a("leggingsDiamond");
  66.    public static gm ai = (new wa(57, 3, 3, 3)).a(3, 3).a("bootsDiamond");
  67.    public static gm aj = (new wa(58, 1, 4, 0)).a(4, 0).a("helmetGold");
  68.    public static gm ak = (new wa(59, 1, 4, 1)).a(4, 1).a("chestplateGold");
  69.    public static gm al = (new wa(60, 1, 4, 2)).a(4, 2).a("leggingsGold");
  70.    public static gm am = (new wa(61, 1, 4, 3)).a(4, 3).a("bootsGold");
  71.    public static gm an = (new gm(62)).a(6, 0).a("flint");
  72.    public static gm ao = (new yw(63, 3, true)).a(7, 5).a("porkchopRaw");
  73.    public static gm ap = (new yw(64, 8, true)).a(8, 5).a("porkchopCooked");
  74.    public static gm aq = (new ym(65)).a(10, 1).a("painting");
  75.    public static gm ar = (new yw(66, 42, false)).a(11, 0).a("appleGold");
  76.    public static gm as = (new vc(67)).a(10, 2).a("sign");
  77.    public static gm at = (new hu(68, ln.d)).a(11, 2).a("doorWood");
  78.    public static gm au = (new bc(69, 0)).a(10, 4).a("bucket");
  79.    public static gm av = (new bc(70, uu.B.bn)).a(11, 4).a("bucketWater").a(au);
  80.    public static gm aw = (new bc(71, uu.D.bn)).a(12, 4).a("bucketLava").a(au);
  81.    public static gm ax = (new rl(72, 0)).a(7, 8).a("minecart");
  82.    public static gm ay = (new sa(73)).a(8, 6).a("saddle");
  83.    public static gm az = (new hu(74, ln.f)).a(12, 2).a("doorIron");
  84.    public static gm aA = (new ie(75)).a(8, 3).a("redstone");
  85.    public static gm aB = (new dm(76)).a(14, 0).a("snowball");
  86.    public static gm aC = (new vd(77)).a(8, 8).a("boat");
  87.    public static gm aD = (new gm(78)).a(7, 6).a("leather");
  88.    public static gm aE = (new bc(79, -1)).a(13, 4).a("milk").a(au);
  89.    public static gm aF = (new gm(80)).a(6, 1).a("brick");
  90.    public static gm aG = (new gm(81)).a(9, 3).a("clay");
  91.    public static gm aH = (new lv(82, uu.aY)).a(11, 1).a("reeds");
  92.    public static gm aI = (new gm(83)).a(10, 3).a("paper");
  93.    public static gm aJ = (new gm(84)).a(11, 3).a("book");
  94.    public static gm aK = (new gm(85)).a(14, 1).a("slimeball");
  95.    public static gm aL = (new rl(86, 1)).a(7, 9).a("minecartChest");
  96.    public static gm aM = (new rl(87, 2)).a(7, 10).a("minecartFurnace");
  97.    public static gm aN = (new mo(88)).a(12, 0).a("egg");
  98.    public static gm aO = (new gm(89)).a(6, 3).a("compass");
  99.    public static gm aP = (new cs(90)).a(5, 4).a("fishingRod");
  100.    public static gm aQ = (new gm(91)).a(6, 4).a("clock");
  101.    public static gm aR = (new gm(92)).a(9, 4).a("yellowDust");
  102.    public static gm aS = (new yw(93, 2, false)).a(9, 5).a("fishRaw");
  103.    public static gm aT = (new yw(94, 5, false)).a(10, 5).a("fishCooked");
  104.    public static gm aU = (new km(95)).a(14, 4).a("dyePowder");
  105.    public static gm aV = (new gm(96)).a(12, 1).a("bone").h();
  106.    public static gm aW = (new gm(97)).a(13, 0).a("sugar").h();
  107.    public static gm aX = (new lv(98, uu.bh)).d(1).a(13, 1).a("cake");
  108.    public static gm aY = (new lp(99)).d(1).a(13, 2).a("bed");
  109.    public static gm aZ = (new lv(100, uu.bi)).a(6, 5).a("diode");
  110.    public static gm ba = (new qk(101, 1, false, 8)).a(12, 5).a("cookie");
  111.    public static wr bb = (wr)(new wr(102)).a(12, 3).a("map");
  112.    public static bl bc = (bl)(new bl(103)).a(13, 5).a("shears");
  113.    public static gm bd = (new tr(2000, "13")).a(0, 15).a("record");
  114.    public static gm be = (new tr(2001, "cat")).a(1, 15).a("record");
  115.    public final int bf;
  116.    protected int bg = 64;
  117.    private int a = 0;
  118.    protected int bh;
  119.    protected boolean bi = false;
  120.    protected boolean bj = false;
  121.    private gm bk = null;
  122.    private String bl;
  123.    private static Field statlistArray;
  124.    private static Method StatList_func_25154_a;
  125.    private static Field StatList_field_25172_A;
  126.    private static Field StatList_field_25170_B;
  127.  
  128.  
  129.    protected gm(int i) {
  130.       if(mod_MCExtended.moreBlockIds) {
  131.          if(this instanceof ck) {
  132.             i += 256;
  133.          } else {
  134.             i += 1024;
  135.          }
  136.       } else {
  137.          i += 256;
  138.       }
  139.  
  140.       this.bf = i;
  141.       if(c[this.bf] != null) {
  142.          System.out.println("CONFLICT @ " + i);
  143.       }
  144.  
  145.       c[this.bf] = this;
  146.    }
  147.  
  148.    public gm c(int i) {
  149.       this.bh = i;
  150.       return this;
  151.    }
  152.  
  153.    public gm d(int i) {
  154.       this.bg = i;
  155.       return this;
  156.    }
  157.  
  158.    public gm a(int i, int j) {
  159.       this.bh = i + j * 16;
  160.       return this;
  161.    }
  162.  
  163.    public int a(int i) {
  164.       return this.bh;
  165.    }
  166.  
  167.    public final int b(iz itemstack) {
  168.       return this.a(itemstack.i());
  169.    }
  170.  
  171.    public boolean a(iz itemstack, gs entityplayer, fd world, int i, int j, int k, int l) {
  172.       return false;
  173.    }
  174.  
  175.    public float a(iz itemstack, uu block) {
  176.       return 1.0F;
  177.    }
  178.  
  179.    public iz a(iz itemstack, fd world, gs entityplayer) {
  180.       return itemstack;
  181.    }
  182.  
  183.    public int d() {
  184.       return this.bg;
  185.    }
  186.  
  187.    public int b(int i) {
  188.       return 0;
  189.    }
  190.  
  191.    public boolean e() {
  192.       return this.bj;
  193.    }
  194.  
  195.    protected gm a(boolean flag) {
  196.       this.bj = flag;
  197.       return this;
  198.    }
  199.  
  200.    public int f() {
  201.       return this.a;
  202.    }
  203.  
  204.    protected gm e(int i) {
  205.       this.a = i;
  206.       return this;
  207.    }
  208.  
  209.    public boolean g() {
  210.       return this.a > 0 && !this.bj;
  211.    }
  212.  
  213.    public boolean a(iz itemstack, ls entityliving, ls entityliving1) {
  214.       return false;
  215.    }
  216.  
  217.    public boolean a(iz itemstack, int i, int j, int k, int l, ls entityliving) {
  218.       return false;
  219.    }
  220.  
  221.    public int a(sn entity) {
  222.       return 1;
  223.    }
  224.  
  225.    public boolean a(uu block) {
  226.       return false;
  227.    }
  228.  
  229.    public void a(iz itemstack, ls entityliving) {}
  230.  
  231.    public gm h() {
  232.       this.bi = true;
  233.       return this;
  234.    }
  235.  
  236.    public boolean b() {
  237.       return this.bi;
  238.    }
  239.  
  240.    public boolean c() {
  241.       return false;
  242.    }
  243.  
  244.    public gm a(String s) {
  245.       this.bl = "item." + s;
  246.       return this;
  247.    }
  248.  
  249.    public String a() {
  250.       return this.bl;
  251.    }
  252.  
  253.    public String a(iz itemstack) {
  254.       return this.bl;
  255.    }
  256.  
  257.    public gm a(gm item) {
  258.       if(this.bg > 1) {
  259.          throw new IllegalArgumentException("Max stack size must be 1 for items with crafting results");
  260.       } else {
  261.          this.bk = item;
  262.          return this;
  263.       }
  264.    }
  265.  
  266.    public gm i() {
  267.       return this.bk;
  268.    }
  269.  
  270.    public boolean j() {
  271.       return this.bk != null;
  272.    }
  273.  
  274.    public String k() {
  275.       return do.a(this.a() + ".name");
  276.    }
  277.  
  278.    public int f(int i) {
  279.       return 16777215;
  280.    }
  281.  
  282.    public void a(iz itemstack, fd world, sn entity, int i, boolean flag) {}
  283.  
  284.    public void b(iz itemstack, fd world, gs entityplayer) {}
  285.  
  286.    private static void ReSizeArrays() {
  287.       jl.E = new vr[c.length];
  288.       jl.F = new vr[c.length];
  289.  
  290.       try {
  291.          try {
  292.             statlistArray = jl.class.getDeclaredField("C");
  293.             StatList_field_25172_A = jl.class.getDeclaredField("A");
  294.             StatList_field_25172_A.setAccessible(true);
  295.             StatList_field_25170_B = jl.class.getDeclaredField("B");
  296.             StatList_field_25170_B.setAccessible(true);
  297.          } catch (NoSuchFieldException var7) {
  298.             try {
  299.                statlistArray = jl.class.getDeclaredField("mineBlockStatArray");
  300.                StatList_field_25172_A = jl.class.getDeclaredField("field_25172_A");
  301.                StatList_field_25172_A.setAccessible(true);
  302.                StatList_field_25170_B = jl.class.getDeclaredField("field_25170_B");
  303.                StatList_field_25170_B.setAccessible(true);
  304.             } catch (Exception var6) {
  305.                System.out.println(var6);
  306.             }
  307.          }
  308.  
  309.          try {
  310.             StatList_func_25154_a = jl.class.getDeclaredMethod("a", new Class[0]);
  311.             StatList_func_25154_a.setAccessible(true);
  312.          } catch (NoSuchMethodException var5) {
  313.             try {
  314.                StatList_func_25154_a = jl.class.getDeclaredMethod("func_25154_a", new Class[0]);
  315.                StatList_func_25154_a.setAccessible(true);
  316.             } catch (Exception var4) {
  317.                System.out.println(var4);
  318.             }
  319.          }
  320.       } catch (Exception var8) {
  321.          System.out.println(var8);
  322.       }
  323.  
  324.       try {
  325.          StatList_field_25170_B.set((Object)null, (Object)null);
  326.          statlistArray.setAccessible(true);
  327.          if(statlistArray.get((Object)null) instanceof vr[]) {
  328.             vr[] e = jl.C;
  329.             vr[] statarraynew = new vr[1024];
  330.  
  331.             for(int i = 0; i < statarraynew.length; ++i) {
  332.                if(i < e.length && e != null) {
  333.                   statarraynew[i] = e[i];
  334.                } else {
  335.                   String s1;
  336.                   if(i < e.length && e[i] == null && uu.m[i] != null) {
  337.                      s1 = do.a("stat.mineBlock", new Object[]{uu.m[i].n()});
  338.                      statarraynew[i] = (new tw(16777216 + i, s1, i)).g();
  339.                   } else if(uu.m[i] != null) {
  340.                      s1 = do.a("stat.mineBlock", new Object[]{uu.m[i].n()});
  341.                      statarraynew[i] = (new tw(16777216 + i, s1, i)).g();
  342.                   }
  343.                }
  344.             }
  345.  
  346.             statlistArray.set((Object)null, statarraynew);
  347.          }
  348.       } catch (Exception var9) {
  349.          System.out.println(var9);
  350.       }
  351.  
  352.    }
  353.  
  354.    static {
  355.       if(mod_MCExtended.moreBlockIds) {
  356.          ReSizeArrays();
  357.       }
  358.  
  359.       jl.c();
  360.       statlistArray = null;
  361.    }
  362. }



  • Recent Pastes