use of mcjty.lib.gui.icons.ImageIcon in project RFToolsControl by McJty.
the class GuiProgrammer method initIcons.
private void initIcons() {
if (ICONS.isEmpty()) {
for (Map.Entry<String, Opcode> entry : Opcodes.OPCODES.entrySet()) {
String id = entry.getKey();
Opcode opcode = entry.getValue();
ResourceLocation iconResource = icons;
if (opcode.getIconResource() != null) {
iconResource = new ResourceLocation(opcode.getIconResource());
}
ICONS.put(id, new ImageIcon(id).setDimensions(ICONSIZE, ICONSIZE).setImage(iconResource, opcode.getIconU() * ICONSIZE, opcode.getIconV() * ICONSIZE));
}
}
}
Aggregations