Skip to content

Commit

Permalink
Update previous food tags (#10385)
Browse files Browse the repository at this point in the history
Upon request of Ray after accidental merge. Updated the food tags to just datagen, not be included in the ItemFood
Undone food builder logic in ModItemsInitializer
Brought list code more in line with what Ray already made for the cook rework
Ran datagen, but no changes were made
  • Loading branch information
Thodor12 authored Nov 24, 2024
1 parent 9770002 commit a908203
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/main/java/com/minecolonies/api/items/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import net.minecraft.world.item.Item;
import org.jetbrains.annotations.NotNull;

import java.util.List;

/**
* Class handling the registering of the mod items.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,14 +553,42 @@ protected void addTags(final @NotNull HolderLookup.Provider provider)
tag(ModTags.ignoreNBT)
.addTag(ItemTags.BANNERS);

tag(Tags.Items.FOODS)
.add(ModItems.milkyBread, ModItems.sugaryBread, ModItems.goldenBread, ModItems.chorusBread);
tag(Tags.Items.FOODS).add(ModItems.getAllFoods());

tag(Tags.Items.FOODS_BREAD)
.add(ModItems.milkyBread, ModItems.sugaryBread, ModItems.goldenBread, ModItems.chorusBread);
.add(ModItems.milkyBread,
ModItems.sugaryBread,
ModItems.goldenBread,
ModItems.chorusBread,
ModItems.flatbread,
ModItems.hand_pie,
ModItems.lembas_scone,
ModItems.manchet_bread,
ModItems.muffin,
ModItems.stew_trencher,
ModItems.stuffed_pita);

tag(Tags.Items.FOODS_CANDY)
.add(ModItems.hand_pie)
.add(ModItems.muffin);

tag(Tags.Items.FOODS_COOKED_MEAT)
.add(ModItems.lamb_stew);

tag(Tags.Items.FOODS_GOLDEN)
.add(ModItems.goldenBread);

tag(Tags.Items.FOODS_SOUP)
.add(ModItems.cabochis)
.add(ModItems.lamb_stew)
.add(ModItems.pottage);

tag(Tags.Items.FOODS_VEGETABLE)
.add(ModItems.cabochis)
.add(ModItems.eggplant_dolma)
.add(ModItems.pottage)
.add(ModItems.stuffed_pepper)
.add(ModItems.stuffed_pita);
}

@NotNull
Expand Down

0 comments on commit a908203

Please sign in to comment.