IProbeInfo horizontal = probeInfo.horizontal(alignment); if (harvestable) { horizontal.icon(ICONS, 0, offs, dim, dim, iconStyle) .text(OK + ((harvestTool != null) ? harvestTool : "No tool")); } else { if (harvestName == null || harvestName.isEmpty()) { horizontal.icon(ICONS, 16, offs, dim, dim, iconStyle) .text(WARNING + ((harvestTool != null) ? harvestTool : "No tool")); } else { horizontal.icon(ICONS, 16, offs, dim, dim, iconStyle) .text(WARNING + ((harvestTool != null) ? harvestTool : "No tool") + " (level " + harvestName + ")");
private static IProbeInfo addIcon(IProbeInfo probeInfo, IWidgetIcon icon, int border) { ResourceLocation texture = icon.getMap().getTexture(); int x = icon.getX(); int y = icon.getY(); int width = icon.getWidth(); int height = icon.getHeight(); return probeInfo.icon(texture, x, y, width, height, probeInfo.defaultIconStyle().width(width + border).height(height + border)); }
horizontal.item(bucketStack); } else { horizontal.icon(fluid.getStill(), -1, -1, 16, 16, probeInfo.defaultIconStyle().width(20));