use of com.bluepowermod.tile.TileMachineBase in project BluePower by Qmunity.
the class GuiContainerBaseBP method initGui.
@Override
public void initGui() {
super.initGui();
lastLeftStat = lastRightStat = null;
if (inventory instanceof TileMachineBase) {
WidgetTabItemLister backlogTab = new WidgetTabItemLister(this, "gui.bluepower:tab.stuffed", Refs.MODID + ":textures/gui/widgets/gui_stuffed.png", guiLeft + xSize, guiTop + 5, 0xFFc13d40, null, false);
lastRightStat = backlogTab;
backlogTab.setItems(((TileMachineBase) inventory).getBacklog());
addWidget(backlogTab);
}
String unlocalizedInfo = inventory.getInventoryName() + ".info";
String localizedInfo = I18n.format(unlocalizedInfo);
if (!unlocalizedInfo.equals(localizedInfo)) {
addAnimatedStat("gui.bluepower:tab.info", Refs.MODID + ":textures/gui/widgets/gui_info.png", 0xFF8888FF, isInfoStatLeftSided()).setText(unlocalizedInfo);
}
}
use of com.bluepowermod.tile.TileMachineBase in project BluePower by Qmunity.
the class MessageSyncMachineBacklog method handleClientSide.
@Override
public void handleClientSide(EntityPlayer player) {
TileEntity te = player.worldObj.getTileEntity(x, y, z);
if (te instanceof TileMachineBase) {
((TileMachineBase) te).setBacklog(stacks);
GuiContainerBase gui = (GuiContainerBase) ClientProxy.getOpenedGui();
if (gui != null)
gui.redraw();
}
}
use of com.bluepowermod.tile.TileMachineBase in project BluePower by Qmunity.
the class WailaProviderMachines method getWailaBody.
@Override
public List<String> getWailaBody(ItemStack item, List<String> tip, IWailaDataAccessor accessor, IWailaConfigHandler config) {
TileMachineBase machine = (TileMachineBase) accessor.getTileEntity();
machine.addWailaInfo(info);
tip.addAll(info);
info.clear();
return tip;
}
Aggregations