Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 22.56 KB | None | 0 0
  1. public final class ItemDef
  2. {
  3.  
  4.     public static void nullLoader()
  5.     {
  6.         mruNodes2 = null;
  7.         mruNodes1 = null;
  8.         streamIndices = null;
  9.         cache = null;
  10.         stream = null;
  11.     }
  12.  
  13.     public boolean method192(int j)
  14.     {
  15.         int k = anInt175;
  16.         int l = anInt166;
  17.         if(j == 1)
  18.         {
  19.             k = anInt197;
  20.             l = anInt173;
  21.         }
  22.         if(k == -1)
  23.             return true;
  24.         boolean flag = true;
  25.         if(!Model.method463(k))
  26.             flag = false;
  27.         if(l != -1 && !Model.method463(l))
  28.             flag = false;
  29.         return flag;
  30.     }
  31.  
  32.     public static void unpackConfig(NamedArchive archive)
  33.     {
  34.         stream = new Stream(archive.getDataForName("obj.dat"));
  35.         Stream stream = new Stream(archive.getDataForName("obj.idx"));
  36.         totalItems = stream.readUnsignedWord() + 21;
  37.         streamIndices = new int[totalItems+ 50000];
  38.         int i = 2;
  39.         for(int j = 0; j < totalItems - 21; j++)
  40.         {
  41.             streamIndices[j] = i;
  42.             i += stream.readUnsignedWord();
  43.         }
  44.  
  45.         cache = new ItemDef[10];
  46.         for(int k = 0; k < 10; k++)
  47.             cache[k] = new ItemDef();
  48.  
  49.     }
  50.  
  51.     public Model method194(int j)
  52.     {
  53.         int k = anInt175;
  54.         int l = anInt166;
  55.         if(j == 1)
  56.         {
  57.             k = anInt197;
  58.             l = anInt173;
  59.         }
  60.         if(k == -1)
  61.             return null;
  62.         Model model = Model.method462(k);
  63.         if(l != -1)
  64.         {
  65.             Model model_1 = Model.method462(l);
  66.             Model aclass30_sub2_sub4_sub6s[] = {
  67.                     model, model_1
  68.             };
  69.             model = new Model(2, aclass30_sub2_sub4_sub6s);
  70.         }
  71.         if(modifiedModelColors != null)
  72.         {
  73.             for(int i1 = 0; i1 < modifiedModelColors.length; i1++)
  74.                 model.method476(modifiedModelColors[i1], originalModelColors[i1]);
  75.  
  76.         }
  77.         return model;
  78.     }
  79.  
  80.     public boolean method195(int j)
  81.     {
  82.         int k = anInt165;
  83.         int l = anInt188;
  84.         int i1 = anInt185;
  85.         if(j == 1)
  86.         {
  87.             k = anInt200;
  88.             l = anInt164;
  89.             i1 = anInt162;
  90.         }
  91.         if(k == -1)
  92.             return true;
  93.         boolean flag = true;
  94.         if(!Model.method463(k))
  95.             flag = false;
  96.         if(l != -1 && !Model.method463(l))
  97.             flag = false;
  98.         if(i1 != -1 && !Model.method463(i1))
  99.             flag = false;
  100.         return flag;
  101.     }
  102.  
  103.     public Model method196(int i)
  104.     {
  105.         int j = anInt165;
  106.         int k = anInt188;
  107.         int l = anInt185;
  108.         if(i == 1)
  109.         {
  110.             j = anInt200;
  111.             k = anInt164;
  112.             l = anInt162;
  113.         }
  114.         if(j == -1)
  115.             return null;
  116.         Model model = Model.method462(j);
  117.         if(k != -1)
  118.             if(l != -1)
  119.             {
  120.                 Model model_1 = Model.method462(k);
  121.                 Model model_3 = Model.method462(l);
  122.                 Model aclass30_sub2_sub4_sub6_1s[] = {
  123.                         model, model_1, model_3
  124.                 };
  125.                 model = new Model(3, aclass30_sub2_sub4_sub6_1s);
  126.             } else
  127.             {
  128.                 Model model_2 = Model.method462(k);
  129.                 Model aclass30_sub2_sub4_sub6s[] = {
  130.                         model, model_2
  131.                 };
  132.                 model = new Model(2, aclass30_sub2_sub4_sub6s);
  133.             }
  134.         if(i == 0 && aByte205 != 0)
  135.             model.method475(0, aByte205, 0);
  136.         if(i == 1 && aByte154 != 0)
  137.             model.method475(0, aByte154, 0);
  138.         if(modifiedModelColors != null)
  139.         {
  140.             for(int i1 = 0; i1 < modifiedModelColors.length; i1++)
  141.                 model.method476(modifiedModelColors[i1], originalModelColors[i1]);
  142.  
  143.         }
  144.         return model;
  145.     }
  146.  
  147.     private void setDefaults()
  148.     {
  149.         modelID = 0;
  150.         name = null;
  151.         description = null;
  152.         modifiedModelColors = null;
  153.         originalModelColors = null;
  154.         modelZoom = 2000;
  155.         modelRotationY = 0;
  156.         modelRotationX = 0;
  157.         anInt204 = 0;
  158.         modelOffset1 = 0;
  159.         modelOffset2 = 0;
  160.         stackable = false;
  161.         value = 1;
  162.         membersObject = false;
  163.         groundActions = null;
  164.         itemActions = null;
  165.         anInt165 = -1;
  166.         anInt188 = -1;
  167.         aByte205 = 0;
  168.         anInt200 = -1;
  169.         anInt164 = -1;
  170.         aByte154 = 0;
  171.         anInt185 = -1;
  172.         anInt162 = -1;
  173.         anInt175 = -1;
  174.         anInt166 = -1;
  175.         anInt197 = -1;
  176.         anInt173 = -1;
  177.         stackIDs = null;
  178.         stackAmounts = null;
  179.         certID = -1;
  180.         certTemplateID = -1;
  181.         anInt167 = 128;
  182.         anInt192 = 128;
  183.         anInt191 = 128;
  184.         anInt196 = 0;
  185.         anInt184 = 0;
  186.         team = 0;
  187.     }
  188. public static ItemDef forID(int i) {
  189.         for(int j = 0; j < 10; j++)
  190.             if(cache[j].id == i)
  191.                 return cache[j];
  192.         cacheIndex = (cacheIndex + 1) % 10;
  193.         ItemDef itemDef = cache[cacheIndex];
  194.         ItemDef class8 = cache[cacheIndex];
  195.         stream.currentOffset = streamIndices[i];
  196.         itemDef.id = i;
  197.         itemDef.setDefaults();
  198.         itemDef.readValues(stream);
  199.         Renamed.Items(i);
  200.         if(itemDef.certTemplateID != -1)
  201.             itemDef.toNote();
  202.         if(!isMembers && itemDef.membersObject) {
  203.             itemDef.name = "Members Object";
  204.             itemDef.description = "Login to a members' server to use this object.".getBytes();
  205.             itemDef.groundActions = null;
  206.             itemDef.itemActions = null;
  207.             itemDef.team = 0;
  208.         }
  209.        NonRenamed.Items(i);
  210.         if(itemDef.anInt174 > 0) {
  211.             itemDef.name = itemDef.aString170;
  212.             itemDef.description = itemDef.aByteArray178;
  213.             itemDef.itemActions = itemDef.aStringArray189;
  214.             itemDef.originalModelColors = itemDef.anIntArray156;
  215.             itemDef.modifiedModelColors = itemDef.anIntArray160;
  216.             itemDef.modelID = itemDef.anInt174;
  217.             itemDef.anInt165 = itemDef.anInt165;
  218.            itemDef.anInt188 = itemDef.anInt188;
  219.             itemDef.anInt200 = itemDef.anInt200;
  220.            itemDef.anInt164 = itemDef.anInt164;
  221.             itemDef.modelZoom = itemDef.anInt181;
  222.             itemDef.modelRotationX = itemDef.anInt190;
  223.             itemDef.modelRotationY = itemDef.anInt198;
  224.             itemDef.modelOffset1 = itemDef.anInt169;
  225.             itemDef.modelOffset2 = itemDef.anInt194;
  226.         }
  227.         return itemDef;
  228.     }
  229.  
  230.     public String aString170;//name
  231.     public byte aByteArray178[];//description
  232.     public String aStringArray189[];//actions
  233.     public int[] anIntArray156;//originalModelColors
  234.     public int[] anIntArray160;//modifiedModelColors
  235.     public int anInt174;//modelID
  236.     public int anInt165;//maleEquip1
  237.     public int anInt188;//maleEquip2
  238.     public int anInt200;//femaleEquip1
  239.     public int anInt164;//femaleEquip2
  240.     public int anInt181;//modelZoom
  241.     public int anInt190;//modelRotation1
  242.     public int anInt198;//modelRotation2
  243.     public int anInt169;//modelOffset1
  244.     public int anInt194;//modelOffset2
  245.  
  246.     public void actionData(int a, String b) {
  247.         itemActions = new String[5];
  248.         itemActions[a] = b;
  249.     }
  250.     public void totalColors(int total) {
  251.         originalModelColors = new int[total];
  252.         modifiedModelColors = new int[total];
  253.     }
  254.     public void colors(int id, int original, int modified) {
  255.         originalModelColors[id] = original;
  256.         modifiedModelColors[id] = modified;
  257.     }
  258.     public void itemData(String n, String d) {
  259.         name = n;
  260.         description = d.getBytes();
  261.     }
  262.     public void models(int mID, int mE, int fE, int mE2, int fE2) {
  263.         modelID = mID;
  264.         anInt165 = mE;
  265.         anInt200 = fE;
  266.         anInt188 = mE2;
  267.         anInt164 = fE2;
  268.     }
  269.     public void modelData(int mZ, int mR1, int mR2, int mO1, int mO2) {
  270.         modelZoom = mZ;
  271.         modelRotationX = mR1;
  272.         modelRotationY = mR2;
  273.         modelOffset1 = mO1;
  274.         modelOffset2 = mO2;
  275.     }
  276.    
  277.  
  278.     private void toNote()
  279.     {
  280.         ItemDef itemDef = forID(certTemplateID);
  281.         modelID = itemDef.modelID;
  282.         modelZoom = itemDef.modelZoom;
  283.         modelRotationY = itemDef.modelRotationY;
  284.         modelRotationX = itemDef.modelRotationX;
  285.  
  286.         anInt204 = itemDef.anInt204;
  287.         modelOffset1 = itemDef.modelOffset1;
  288.         modelOffset2 = itemDef.modelOffset2;
  289.         modifiedModelColors = itemDef.modifiedModelColors;
  290.         originalModelColors = itemDef.originalModelColors;
  291.         ItemDef itemDef_1 = forID(certID);
  292.         name = itemDef_1.name;
  293.         membersObject = itemDef_1.membersObject;
  294.         value = itemDef_1.value;
  295.         String s = "a";
  296.         char c = itemDef_1.name.charAt(0);
  297.         if(c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U')
  298.             s = "an";
  299.         description = ("Swap this note at any bank for " + s + " " + itemDef_1.name + ".").getBytes();
  300.         stackable = true;
  301.     }
  302.  
  303.     public static Sprite getSprite(int i, int j, int k)
  304.     {
  305.         if(k == 0)
  306.         {
  307.             Sprite sprite = (Sprite) mruNodes1.insertFromCache(i);
  308.             if(sprite != null && sprite.maxHeight != j && sprite.maxHeight != -1)
  309.             {
  310.                 sprite.unlink();
  311.                 sprite = null;
  312.             }
  313.             if(sprite != null)
  314.                 return sprite;
  315.         }
  316.         ItemDef itemDef = forID(i);
  317.         if(itemDef.stackIDs == null)
  318.             j = -1;
  319.         if(j > 1)
  320.         {
  321.             int i1 = -1;
  322.             for(int j1 = 0; j1 < 10; j1++)
  323.                 if(j >= itemDef.stackAmounts[j1] && itemDef.stackAmounts[j1] != 0)
  324.                     i1 = itemDef.stackIDs[j1];
  325.  
  326.             if(i1 != -1)
  327.                 itemDef = forID(i1);
  328.         }
  329.         Model model = itemDef.method201(1);
  330.         if(model == null)
  331.             return null;
  332.         Sprite sprite = null;
  333.         if(itemDef.certTemplateID != -1)
  334.         {
  335.             sprite = getSprite(itemDef.certID, 10, -1);
  336.             if(sprite == null)
  337.                 return null;
  338.         }
  339.         Sprite enabledSprite = new Sprite(32, 32);
  340.         int k1 = Texture.textureInt1;
  341.         int l1 = Texture.textureInt2;
  342.         int ai[] = Texture.anIntArray1472;
  343.         int ai1[] = DrawingArea.pixels;
  344.         int i2 = DrawingArea.width;
  345.         int j2 = DrawingArea.height;
  346.         int k2 = DrawingArea.topX;
  347.         int l2 = DrawingArea.bottomX;
  348.         int i3 = DrawingArea.topY;
  349.         int j3 = DrawingArea.bottomY;
  350.         Texture.aBoolean1464 = false;
  351.         DrawingArea.initDrawingArea(32, 32, enabledSprite.myPixels);
  352.         DrawingArea.method336(32, 0, 0, 0, 32);
  353.         Texture.method364();
  354.         int k3 = itemDef.modelZoom;
  355.         if(k == -1)
  356.             k3 = (int)((double)k3 * 1.5D);
  357.         if(k > 0)
  358.             k3 = (int)((double)k3 * 1.04D);
  359.         int l3 = Texture.anIntArray1470[itemDef.modelRotationY] * k3 >> 16;
  360.         int i4 = Texture.anIntArray1471[itemDef.modelRotationY] * k3 >> 16;
  361.         model.method482(itemDef.modelRotationX, itemDef.anInt204, itemDef.modelRotationY, itemDef.modelOffset1, l3 + model.modelHeight / 2 + itemDef.modelOffset2, i4 + itemDef.modelOffset2);
  362.         for(int i5 = 31; i5 >= 0; i5--)
  363.         {
  364.             for(int j4 = 31; j4 >= 0; j4--)
  365.                 if(enabledSprite.myPixels[i5 + j4 * 32] == 0)
  366.                     if(i5 > 0 && enabledSprite.myPixels[(i5 - 1) + j4 * 32] > 1)
  367.                         enabledSprite.myPixels[i5 + j4 * 32] = 1;
  368.                     else
  369.                     if(j4 > 0 && enabledSprite.myPixels[i5 + (j4 - 1) * 32] > 1)
  370.                         enabledSprite.myPixels[i5 + j4 * 32] = 1;
  371.                     else
  372.                     if(i5 < 31 && enabledSprite.myPixels[i5 + 1 + j4 * 32] > 1)
  373.                         enabledSprite.myPixels[i5 + j4 * 32] = 1;
  374.                     else
  375.                     if(j4 < 31 && enabledSprite.myPixels[i5 + (j4 + 1) * 32] > 1)
  376.                         enabledSprite.myPixels[i5 + j4 * 32] = 1;
  377.  
  378.         }
  379.  
  380.         if(k > 0)
  381.         {
  382.             for(int j5 = 31; j5 >= 0; j5--)
  383.             {
  384.                 for(int k4 = 31; k4 >= 0; k4--)
  385.                     if(enabledSprite.myPixels[j5 + k4 * 32] == 0)
  386.                         if(j5 > 0 && enabledSprite.myPixels[(j5 - 1) + k4 * 32] == 1)
  387.                             enabledSprite.myPixels[j5 + k4 * 32] = k;
  388.                         else
  389.                         if(k4 > 0 && enabledSprite.myPixels[j5 + (k4 - 1) * 32] == 1)
  390.                             enabledSprite.myPixels[j5 + k4 * 32] = k;
  391.                         else
  392.                         if(j5 < 31 && enabledSprite.myPixels[j5 + 1 + k4 * 32] == 1)
  393.                             enabledSprite.myPixels[j5 + k4 * 32] = k;
  394.                         else
  395.                         if(k4 < 31 && enabledSprite.myPixels[j5 + (k4 + 1) * 32] == 1)
  396.                             enabledSprite.myPixels[j5 + k4 * 32] = k;
  397.  
  398.             }
  399.  
  400.         } else
  401.         if(k == 0)
  402.         {
  403.             for(int k5 = 31; k5 >= 0; k5--)
  404.             {
  405.                 for(int l4 = 31; l4 >= 0; l4--)
  406.                     if(enabledSprite.myPixels[k5 + l4 * 32] == 0 && k5 > 0 && l4 > 0 && enabledSprite.myPixels[(k5 - 1) + (l4 - 1) * 32] > 0)
  407.                         enabledSprite.myPixels[k5 + l4 * 32] = 0x302020;
  408.  
  409.             }
  410.  
  411.         }
  412.         if(itemDef.certTemplateID != -1)
  413.         {
  414.             int l5 = sprite.maxWidth;
  415.             int j6 = sprite.maxHeight;
  416.             sprite.maxWidth = 32;
  417.             sprite.maxHeight = 32;
  418.             sprite.drawSprite(0, 0);
  419.             sprite.maxWidth = l5;
  420.             sprite.maxHeight = j6;
  421.         }
  422.         if(k == 0)
  423.             mruNodes1.removeFromCache(enabledSprite, i);
  424.         DrawingArea.initDrawingArea(j2, i2, ai1);
  425.         DrawingArea.setDrawingArea(j3, k2, l2, i3);
  426.         Texture.textureInt1 = k1;
  427.         Texture.textureInt2 = l1;
  428.         Texture.anIntArray1472 = ai;
  429.         Texture.aBoolean1464 = true;
  430.         if(itemDef.stackable)
  431.             enabledSprite.maxWidth = 33;
  432.         else
  433.             enabledSprite.maxWidth = 32;
  434.         enabledSprite.maxHeight = j;
  435.         return enabledSprite;
  436.     }
  437.  
  438.     public Model method201(int i)
  439.     {
  440.         if(stackIDs != null && i > 1)
  441.         {
  442.             int j = -1;
  443.             for(int k = 0; k < 10; k++)
  444.                 if(i >= stackAmounts[k] && stackAmounts[k] != 0)
  445.                     j = stackIDs[k];
  446.  
  447.             if(j != -1)
  448.                 return forID(j).method201(1);
  449.         }
  450.         Model model = (Model) mruNodes2.insertFromCache(id);
  451.         if(model != null)
  452.             return model;
  453.         model = Model.method462(modelID);
  454.         if(model == null)
  455.             return null;
  456.         if(anInt167 != 128 || anInt192 != 128 || anInt191 != 128)
  457.             model.method478(anInt167, anInt191, anInt192);
  458.         if(modifiedModelColors != null)
  459.         {
  460.             for(int l = 0; l < modifiedModelColors.length; l++)
  461.                 model.method476(modifiedModelColors[l], originalModelColors[l]);
  462.  
  463.         }
  464.         model.method479(64 + anInt196, 768 + anInt184, -50, -10, -50, true);
  465.         model.aBoolean1659 = true;
  466.         mruNodes2.removeFromCache(model, id);
  467.         return model;
  468.     }
  469.  
  470.     public Model method202(int i)
  471.     {
  472.         if(stackIDs != null && i > 1)
  473.         {
  474.             int j = -1;
  475.             for(int k = 0; k < 10; k++)
  476.                 if(i >= stackAmounts[k] && stackAmounts[k] != 0)
  477.                     j = stackIDs[k];
  478.  
  479.             if(j != -1)
  480.                 return forID(j).method202(1);
  481.         }
  482.         Model model = Model.method462(modelID);
  483.         if(model == null)
  484.             return null;
  485.         if(modifiedModelColors != null)
  486.         {
  487.             for(int l = 0; l < modifiedModelColors.length; l++)
  488.                 model.method476(modifiedModelColors[l], originalModelColors[l]);
  489.  
  490.         }
  491.         return model;
  492.     }
  493.  
  494.     private void readValues(Stream stream)
  495.     {
  496.         do
  497.         {
  498.             int i = stream.readUnsignedByte();
  499.             if(i == 0)
  500.                 return;
  501.             if(i == 1)
  502.                 modelID = stream.readUnsignedWord();
  503.             else
  504.             if(i == 2)
  505.                 name = stream.readNewString();
  506.             else
  507.             if(i == 3)
  508.                 description = stream.readBytes();
  509.             else
  510.             if(i == 4)
  511.                 modelZoom = stream.readUnsignedWord();
  512.             else
  513.             if(i == 5)
  514.                 modelRotationY = stream.readUnsignedWord();
  515.             else
  516.             if(i == 6)
  517.                 modelRotationX = stream.readUnsignedWord();
  518.             else
  519.             if(i == 7)
  520.             {
  521.                 modelOffset1 = stream.readUnsignedWord();
  522.                 if(modelOffset1 > 32767)
  523.                     modelOffset1 -= 0x10000;
  524.             } else
  525.             if(i == 8)
  526.             {
  527.                 modelOffset2 = stream.readUnsignedWord();
  528.                 if(modelOffset2 > 32767)
  529.                     modelOffset2 -= 0x10000;
  530.             } else
  531.             if(i == 10)
  532.                 stream.readUnsignedWord();
  533.             else
  534.             if(i == 11)
  535.                 stackable = true;
  536.             else
  537.             if(i == 12)
  538.                 value = stream.readDWord();
  539.             else
  540.             if(i == 16)
  541.                 membersObject = true;
  542.             else
  543.             if(i == 23)
  544.             {
  545.                 anInt165 = stream.readUnsignedWord();
  546.                 aByte205 = stream.readSignedByte();
  547.             } else
  548.             if(i == 24)
  549.                 anInt188 = stream.readUnsignedWord();
  550.             else
  551.             if(i == 25)
  552.             {
  553.                 anInt200 = stream.readUnsignedWord();
  554.                 aByte154 = stream.readSignedByte();
  555.             } else
  556.             if(i == 26)
  557.                 anInt164 = stream.readUnsignedWord();
  558.             else
  559.             if(i >= 30 && i < 35)
  560.             {
  561.                 if(groundActions == null)
  562.                     groundActions = new String[5];
  563.                 groundActions[i - 30] = stream.readNewString();
  564.                 if(groundActions[i - 30].equalsIgnoreCase("hidden"))
  565.                     groundActions[i - 30] = null;
  566.             } else
  567.             if(i >= 35 && i < 40)
  568.             {
  569.                 if(itemActions == null)
  570.                     itemActions = new String[5];
  571.                 itemActions[i - 35] = stream.readNewString();
  572.             } else
  573.             if(i == 40)
  574.             {
  575.                 int j = stream.readUnsignedByte();
  576.                 modifiedModelColors = new int[j];
  577.                 originalModelColors = new int[j];
  578.                 for(int k = 0; k < j; k++)
  579.                 {
  580.                     modifiedModelColors[k] = stream.readUnsignedWord();
  581.                     originalModelColors[k] = stream.readUnsignedWord();
  582.                 }
  583.  
  584.             } else
  585.             if(i == 78)
  586.                 anInt185 = stream.readUnsignedWord();
  587.             else
  588.             if(i == 79)
  589.                 anInt162 = stream.readUnsignedWord();
  590.             else
  591.             if(i == 90)
  592.                 anInt175 = stream.readUnsignedWord();
  593.             else
  594.             if(i == 91)
  595.                 anInt197 = stream.readUnsignedWord();
  596.             else
  597.             if(i == 92)
  598.                 anInt166 = stream.readUnsignedWord();
  599.             else
  600.             if(i == 93)
  601.                 anInt173 = stream.readUnsignedWord();
  602.             else
  603.             if(i == 95)
  604.                 anInt204 = stream.readUnsignedWord();
  605.             else
  606.             if(i == 97)
  607.                 certID = stream.readUnsignedWord();
  608.             else
  609.             if(i == 98)
  610.                 certTemplateID = stream.readUnsignedWord();
  611.             else
  612.             if(i >= 100 && i < 110)
  613.             {
  614.                 if(stackIDs == null)
  615.                 {
  616.                     stackIDs = new int[10];
  617.                     stackAmounts = new int[10];
  618.                 }
  619.                 stackIDs[i - 100] = stream.readUnsignedWord();
  620.                 stackAmounts[i - 100] = stream.readUnsignedWord();
  621.             } else
  622.             if(i == 110)
  623.                 anInt167 = stream.readUnsignedWord();
  624.             else
  625.             if(i == 111)
  626.                 anInt192 = stream.readUnsignedWord();
  627.             else
  628.             if(i == 112)
  629.                 anInt191 = stream.readUnsignedWord();
  630.             else
  631.             if(i == 113)
  632.                 anInt196 = stream.readSignedByte();
  633.             else
  634.             if(i == 114)
  635.                 anInt184 = stream.readSignedByte() * 5;
  636.             else
  637.             if(i == 115)
  638.                 team = stream.readUnsignedByte();
  639.         } while(true);
  640.     }
  641.  
  642.     private ItemDef()
  643.     {
  644.         id = -1;
  645.     }
  646.  
  647.     private byte aByte154;
  648.     public int value;//anInt155
  649.     public int[] modifiedModelColors;//newModelColor
  650.     public int id;//anInt157
  651.     static MRUNodes mruNodes1 = new MRUNodes(100);
  652.     public static MRUNodes mruNodes2 = new MRUNodes(50);
  653.     public int[] originalModelColors;
  654.     public boolean membersObject;//aBoolean161
  655.     private int anInt162;
  656.     private int certTemplateID;
  657.    // public int anInt164;
  658.   //  public int anInt165;
  659.     private int anInt166;
  660.     private int anInt167;
  661.     public String groundActions[];
  662.     public int modelOffset1;
  663.     public String name;//itemName
  664.     private static ItemDef[] cache;
  665.     private int anInt173;
  666.     public int modelID;//dropModel
  667.     private int anInt175;
  668.     public boolean stackable;//itemStackable
  669.     public byte description[];//itemExamine
  670.     public int certID;
  671.     private static int cacheIndex;
  672.     public int modelZoom;
  673.     public static boolean isMembers = true;
  674.     private static Stream stream;
  675.     private int anInt184;
  676.     private int anInt185;
  677.     //public int anInt188;
  678.     public String itemActions[];//itemMenuOption
  679.     public int modelRotationY;//modelRotateUp
  680.     private int anInt191;
  681.     private int anInt192;
  682.     public int[] stackIDs;//modelStack
  683.     public int modelOffset2;//
  684.     private static int[] streamIndices;
  685.     private int anInt196;
  686.     private int anInt197;
  687.     public int modelRotationX;//modelRotateRight
  688.    // public int anInt200;
  689.     public int[] stackAmounts;//itemAmount
  690.     public int team;
  691.     public static int totalItems;
  692.     public int anInt204;//modelPositionUp
  693.     private byte aByte205;
  694.  
  695. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement