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)); }
IIconStyle iconStyle = probeInfo.defaultIconStyle().width(v ? 18 : 20).height(v ? 14 : 16).textureWidth(32).textureHeight(32); IProbeInfo horizontal = probeInfo.horizontal(alignment); if (harvestable) {
horizontal.item(bucketStack); } else { horizontal.icon(fluid.getStill(), -1, -1, 16, 16, probeInfo.defaultIconStyle().width(20));