Advertisement
Exception_Prototype

Untitled

Dec 17th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.16 KB | None | 0 0
  1.         int sizeAAA = 29 * scaleFactor;
  2.         float minU, minV, maxU, maxV;
  3.  
  4.         for (int i = 0; i < values.length; i++) {
  5.             final ItemStack itemStack = getItemStack(values[i], instance);
  6.             if (itemStack != null) {
  7.                 MINECRAFT.getTextureManager().bindTexture(TextureMap.locationItemsTexture);
  8.                 final IIcon iconIndex = itemStack.getIconIndex();
  9.                 minU = iconIndex.getMinU();
  10.                 minV = iconIndex.getMinU();
  11.                 maxU = iconIndex.getMinU();
  12.                 minV = iconIndex.getMinU();
  13.                 RenderHelper.drawTexturedRect(screenWidth + hGap + 10.0F, 25, ICON_SIZE, ICON_SIZE, iconIndex.getMinU(), iconIndex.getMinV(), iconIndex.getMaxU(), iconIndex.getMaxV());
  14.             } else {
  15.                 MINECRAFT.getTextureManager().bindTexture(new ResourceLocation(Reference.MODID, String.format("textures/gui/%s_category.png", values[i].name().toLowerCase())));
  16.                 RenderHelper.drawTexturedRect(screenWidth + hGap, 17, CATEGORY_SIZE, CATEGORY_SIZE, 0.0F, 0.0F, 1.0F, 1.0F);
  17.             }
  18.             hGap = hGap - CATEGORY_OFFSET - CATEGORY_SIZE;
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement