### Configure Item Dropdown Menu in Cloth Config Source: https://github.com/shedaniel/cloth-config/wiki/Dropdown-Menu This snippet demonstrates how to configure a dropdown menu for items in Cloth Config. It shows how to set the field key, use builders for top cell elements and cell creators, define a default value, provide selections from a registry, and specify a consumer to save the selected item. ```java entryBuilder.startDropdownMenu("Field Key", DropdownMenuBuilder.TopCellElementBuilder.ofItemObject(configItem), // This should contain your saved item instead of an apple as shown here DropdownMenuBuilder.CellCreatorBuilder.ofItemObject() ) .setDefaultValue(Items.APPLE) // You should define a default value here .setSelections(Registry.ITEM.stream().collect(Collectors.toSet())) .setSaveConsumer(item -> configItem = (Item) item) // You should save it here, cast the item because Java is "smart" .build(); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.