Merge 10616ec96d into 9b215c5d3e
This commit is contained in:
commit
175738abe0
|
|
@ -7,16 +7,16 @@ org.gradle.daemon=false
|
|||
mod_version=13.0
|
||||
|
||||
# Minecraft Version Information
|
||||
minecraft_version=1.18
|
||||
minecraft_range=[1.18,1.19)
|
||||
minecraft_version=1.18.2
|
||||
minecraft_range=[1.18.2,1.19)
|
||||
|
||||
# Forge Version Information
|
||||
loader_range=[38,)
|
||||
forge_version=38.0.10
|
||||
forge_range=[38.0.10,)
|
||||
loader_range=[40,)
|
||||
forge_version=40.0.32
|
||||
forge_range=[40.0.32,)
|
||||
|
||||
# Mappings Information
|
||||
mappings_version=1.18
|
||||
mappings_version=1.18.2
|
||||
|
||||
# Build dependencies
|
||||
jei_version=1.16.4:7.6.1.65
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@ import net.minecraft.advancements.Advancement;
|
|||
import net.minecraft.advancements.AdvancementRewards;
|
||||
import net.minecraft.advancements.RequirementsStrategy;
|
||||
import net.minecraft.advancements.critereon.RecipeUnlockedTrigger;
|
||||
import net.minecraft.core.Registry;
|
||||
import net.minecraft.data.recipes.ShapelessRecipeBuilder;
|
||||
import net.minecraft.tags.TagKey;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
import net.minecraft.data.DataGenerator;
|
||||
import net.minecraft.data.recipes.FinishedRecipe;
|
||||
|
|
@ -30,7 +32,7 @@ import java.util.function.Consumer;
|
|||
|
||||
public class IronChestsRecipeProvider extends RecipeProvider implements IConditionBuilder {
|
||||
|
||||
public static final Tags.IOptionalNamedTag<Item> INGOTS_COPPER = tag("ingots/copper");
|
||||
public static final TagKey<Item> INGOTS_COPPER = tag("ingots/copper");
|
||||
|
||||
public IronChestsRecipeProvider(DataGenerator generatorIn) {
|
||||
super(generatorIn);
|
||||
|
|
@ -284,7 +286,7 @@ public class IronChestsRecipeProvider extends RecipeProvider implements IConditi
|
|||
return new ResourceLocation(IronChests.MOD_ID, id);
|
||||
}
|
||||
|
||||
private static Tags.IOptionalNamedTag<Item> tag(String name) {
|
||||
return ItemTags.createOptional(new ResourceLocation("forge", name));
|
||||
private static TagKey<Item> tag(String name) {
|
||||
return TagKey.create(Registry.ITEM_REGISTRY, new ResourceLocation("forge", name));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue