/** * The "title" displayed in the GUI */ default String getLocalizedName() { return getLocalizedToolName(); }
if(toolStack.getItem() instanceof IToolStationDisplay) { IToolStationDisplay tool = (IToolStationDisplay) toolStack.getItem(); toolInfo.setCaption(tool.getLocalizedToolName()); toolInfo.setText(tool.getInformation(toolStack));