/** * Called by TinkerIntegrtion at the end of postInit to remove any materials that are still hidden (unused) * For internal use, should not need to be called by other mods */ public static void removeHiddenMaterials() { materials.entrySet().removeIf(entry->entry.getValue().isHidden()); }
protected List<ContentPageIconList> generateContent(String materialType, SectionData data) { List<Material> materialList = TinkerRegistry.getAllMaterials().stream() .filter(m -> !m.isHidden()) .filter(Material::hasItems) .filter(material -> material.hasStats(materialType))
.filter(m -> !m.isHidden()) .filter(Material::hasItems) .filter(this::isValidMaterial)