private InvBlockInfo getSelectedContainer() { int selected = storageList.getSelected(); if (selected != -1) { SyncedValueList<InvBlockInfo> inventories = tileEntity.getInventories(); if (selected < inventories.size()) { InvBlockInfo invBlockInfo = inventories.get(selected); return invBlockInfo; } } return null; }
private void hilightSelectedContainer(int index) { if (index == -1) { return; } SyncedValueList<InvBlockInfo> inventories = tileEntity.getInventories(); Coordinate c = inventories.get(index).getCoordinate(); RFTools.instance.clientInfo.hilightBlock( c, System.currentTimeMillis() + 1000 * StorageScannerConfiguration.hilightTime); Logging.message(mc.thePlayer, "The inventory is now highlighted"); mc.getMinecraft().thePlayer.closeScreen(); }