Fix convention bucket tag ID format (#2142)

* Fix convention bucket tag ID format

* Create plural fields, deprecate singular fields
This commit is contained in:
Juuxel 2022-04-19 19:43:10 +03:00 committed by GitHub
parent 227c2391ff
commit 474e4f796e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 8 deletions

View file

@ -198,18 +198,18 @@ public class ItemTagGenerator extends FabricTagProvider.ItemTagProvider {
}
private void generateBucketTags() {
getOrCreateTagBuilder(ConventionalItemTags.EMPTY_BUCKET)
getOrCreateTagBuilder(ConventionalItemTags.EMPTY_BUCKETS)
.add(Items.BUCKET);
getOrCreateTagBuilder(ConventionalItemTags.LAVA_BUCKET)
getOrCreateTagBuilder(ConventionalItemTags.LAVA_BUCKETS)
.add(Items.LAVA_BUCKET);
getOrCreateTagBuilder(ConventionalItemTags.WATER_BUCKET)
getOrCreateTagBuilder(ConventionalItemTags.WATER_BUCKETS)
.add(Items.AXOLOTL_BUCKET)
.add(Items.COD_BUCKET)
.add(Items.PUFFERFISH_BUCKET)
.add(Items.TROPICAL_FISH_BUCKET)
.add(Items.SALMON_BUCKET)
.add(Items.WATER_BUCKET);
getOrCreateTagBuilder(ConventionalItemTags.MILK_BUCKET)
getOrCreateTagBuilder(ConventionalItemTags.MILK_BUCKETS)
.add(Items.MILK_BUCKET);
}

View file

@ -61,10 +61,10 @@ public class ConventionalItemTags {
public static final TagKey<Item> FOODS = register("foods");
public static final TagKey<Item> POTIONS = register("potions");
// Buckets
public static final TagKey<Item> WATER_BUCKET = register("bucket/water");
public static final TagKey<Item> LAVA_BUCKET = register("bucket/lava");
public static final TagKey<Item> MILK_BUCKET = register("bucket/milk");
public static final TagKey<Item> EMPTY_BUCKET = register("bucket/empty");
public static final TagKey<Item> WATER_BUCKETS = register("water_buckets");
public static final TagKey<Item> LAVA_BUCKETS = register("lava_buckets");
public static final TagKey<Item> MILK_BUCKETS = register("milk_buckets");
public static final TagKey<Item> EMPTY_BUCKETS = register("empty_buckets");
public static final TagKey<Item> GLASS_BLOCKS = register("glass_blocks");
public static final TagKey<Item> GLASS_PANES = register("glass_panes");
@ -90,6 +90,20 @@ public class ConventionalItemTags {
public static final TagKey<Item> WHITE_DYES = register("white_dyes");
public static final TagKey<Item> YELLOW_DYES = register("yellow_dyes");
// Deprecated
/** @deprecated Replaced with {@link #WATER_BUCKETS}. */
@Deprecated(forRemoval = true)
public static final TagKey<Item> WATER_BUCKET = WATER_BUCKETS;
/** @deprecated Replaced with {@link #LAVA_BUCKETS}. */
@Deprecated(forRemoval = true)
public static final TagKey<Item> LAVA_BUCKET = LAVA_BUCKETS;
/** @deprecated Replaced with {@link #MILK_BUCKETS}. */
@Deprecated(forRemoval = true)
public static final TagKey<Item> MILK_BUCKET = MILK_BUCKETS;
/** @deprecated Replaced with {@link #EMPTY_BUCKETS}. */
@Deprecated(forRemoval = true)
public static final TagKey<Item> EMPTY_BUCKET = EMPTY_BUCKETS;
private static TagKey<Item> register(String tagID) {
return TagRegistration.ITEM_TAG_REGISTRATION.registerCommon(tagID);
}