Пример #1
0
 protected void drawGuiContainerForegroundLayer(int par1, int par2) {
   super.fontRendererObj.drawString(
       this.field_94082_v,
       super.xSize / 2 - super.fontRendererObj.getStringWidth(this.field_94082_v) / 2,
       6,
       CustomNpcResourceListener.DefaultTextColor);
   super.fontRendererObj.drawString(
       I18n.format("container.inventory", new Object[0]),
       8,
       super.ySize - 96 + 2,
       CustomNpcResourceListener.DefaultTextColor);
 }
Пример #2
0
 /** Draw the foreground layer for the GuiContainer (everything in front of the items) */
 protected void drawGuiContainerForegroundLayer(int par1, int par2) {
   String qrdMainName =
       this.inventoryQRDMain.hasCustomName()
           ? this.inventoryQRDMain.getName()
           : this.inventoryQRDMain.getName();
   String qrdVoidName =
       this.inventoryQRDVoid.hasCustomName()
           ? this.inventoryQRDVoid.getName()
           : this.inventoryQRDVoid.getName();
   String inventoryName = StatCollector.translateToLocal(Ref.Containers.INVENTORY);
   super.fontRendererObj.drawString(qrdMainName, 8, this.ySize - 262, 0x404040);
   super.fontRendererObj.drawString(qrdVoidName, 128, 87, 0x404040);
   super.fontRendererObj.drawString(inventoryName, 8, this.ySize - 128, 0x404040);
   if (this.inventoryQRDVoid.quantumSync) {
     super.fontRendererObj.drawString(Ref.Containers.VOID_SYNC_TRUE, 46, 87, 0x008000);
   } else {
     super.fontRendererObj.drawString(Ref.Containers.VOID_SYNC_FALSE, 46, 87, 0x800000);
   }
 }