Skip to content

Commit

Permalink
feat: Add DYE_TAGS array for easy mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Feb 16, 2024
1 parent 818b578 commit bde2ecc
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.DyeColor;
import net.minecraft.world.item.Item;

public class BalmItemTags {
Expand Down Expand Up @@ -38,4 +39,23 @@ public class BalmItemTags {
public static final TagKey<Item> WOODEN_RODS = TagKey.create(Registries.ITEM, new ResourceLocation("c", "wooden_rods"));
public static final TagKey<Item> YELLOW_DYES = TagKey.create(Registries.ITEM, new ResourceLocation("c", "yellow_dyes"));

@SuppressWarnings("unchecked")
public static final TagKey<Item>[] DYE_TAGS = new TagKey[] {
WHITE_DYES,
ORANGE_DYES,
MAGENTA_DYES,
LIGHT_BLUE_DYES,
YELLOW_DYES,
LIME_DYES,
PINK_DYES,
GRAY_DYES,
LIGHT_GRAY_DYES,
CYAN_DYES,
PURPLE_DYES,
BLUE_DYES,
BROWN_DYES,
GREEN_DYES,
RED_DYES,
BLACK_DYES
};
}

0 comments on commit bde2ecc

Please sign in to comment.