/* * Decompiled with CFR 0.152. */ package net.minecraft.client.multiplayer; import java.util.Map; import net.minecraft.resources.ResourceKey; import net.minecraft.world.item.crafting.RecipeAccess; import net.minecraft.world.item.crafting.RecipePropertySet; import net.minecraft.world.item.crafting.SelectableRecipe; import net.minecraft.world.item.crafting.StonecutterRecipe; public class ClientRecipeContainer implements RecipeAccess { private final Map, RecipePropertySet> itemSets; private final SelectableRecipe.SingleInputSet stonecutterRecipes; public ClientRecipeContainer(Map, RecipePropertySet> itemSets, SelectableRecipe.SingleInputSet stonecutterRecipes) { this.itemSets = itemSets; this.stonecutterRecipes = stonecutterRecipes; } @Override public RecipePropertySet propertySet(ResourceKey id) { return this.itemSets.getOrDefault(id, RecipePropertySet.EMPTY); } @Override public SelectableRecipe.SingleInputSet stonecutterRecipes() { return this.stonecutterRecipes; } }