Uses of Interface
net.minecraft.recipe.Recipe
Package
Description
-
Uses of Recipe in net.minecraft.data.server.recipe
Modifier and TypeFieldDescriptionprivate final Function<CraftingRecipeCategory,
Recipe<?>> ComplexRecipeJsonBuilder.recipeFactory
Modifier and TypeMethodDescriptionvoid
RecipeExporter.accept
(Identifier recipeId, Recipe<?> recipe, @Nullable AdvancementEntry advancement) Modifier and TypeMethodDescriptionstatic ComplexRecipeJsonBuilder
ComplexRecipeJsonBuilder.create
(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) ModifierConstructorDescriptionComplexRecipeJsonBuilder
(Function<CraftingRecipeCategory, Recipe<?>> recipeFactory) -
Uses of Recipe in net.minecraft.network.packet.s2c.play
Modifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
voidSynchronizeRecipesS2CPacket.writeRecipe
(PacketByteBuf buf, RecipeEntry<?> recipe) -
Uses of Recipe in net.minecraft.recipe
Modifier and TypeClassDescriptionfinal record
RecipeEntry<T extends Recipe<?>>
static interface
RecipeManager.MatchGetter<C extends Inventory,
T extends Recipe<C>> interface
RecipeSerializer<T extends Recipe<?>>
The recipe serializer controls the serialization and deserialization of recipe content.interface
RecipeType<T extends Recipe<?>>
The recipe type allows matching recipes more efficiently by only checking recipes under a given type.Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
A recipe that has only one input ingredient.class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate final Recipe<?>
RecipeMatcher.Matcher.recipe
private final T
RecipeEntry.value
The field for thevalue
record component.Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<Recipe<?>>
Recipe.CODEC
Modifier and TypeMethodDescriptionstatic <C extends Inventory,
T extends Recipe<C>>
RecipeManager.MatchGetter<C,T> RecipeManager.createCachedMatchGetter
(RecipeType<T> type) Creates a cached match getter.<C extends Inventory,
T extends Recipe<C>>
List<RecipeEntry<T>>RecipeManager.getAllMatches
(RecipeType<T> type, C inventory, World world) Creates a list of all recipes of the giventype
that match the giveninventory
andworld
.private <C extends Inventory,
T extends Recipe<C>>
Map<Identifier,RecipeEntry<T>> RecipeManager.getAllOfType
(RecipeType<T> type) <C extends Inventory,
T extends Recipe<C>>
Optional<RecipeEntry<T>>RecipeManager.getFirstMatch
(RecipeType<T> type, C inventory, World world) Returns a recipe of the giventype
that match the giveninventory
andworld
.<C extends Inventory,
T extends Recipe<C>>
Optional<com.mojang.datafixers.util.Pair<Identifier,RecipeEntry<T>>> RecipeManager.getFirstMatch
(RecipeType<T> type, C inventory, World world, @Nullable Identifier id) <C extends Inventory,
T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager.getRemainingStacks
(RecipeType<T> type, C inventory, World world) Returns the remainder of a recipe of the giventype
that match the giveninventory
andworld
, or a shallow copy of theinventory
.<C extends Inventory,
T extends Recipe<C>>
List<RecipeEntry<T>>RecipeManager.listAllOfType
(RecipeType<T> type) Creates a list of all recipes of the giventype
.static <S extends RecipeSerializer<T>,
T extends Recipe<?>>
Sstatic <T extends Recipe<?>>
RecipeType<T>Modifier and TypeMethodDescriptionboolean
Attempts to match the recipe against the collected inputs.boolean
Attempts to match the recipe against the collected inputs.Modifier and TypeMethodDescriptionprotected void
InputSlotFiller.fillInputSlots
(RecipeEntry<? extends Recipe<C>> recipe, boolean craftAll) void
InputSlotFiller.fillInputSlots
(ServerPlayerEntity entity, @Nullable RecipeEntry<? extends Recipe<C>> recipe, boolean craftAll) -
Uses of Recipe in net.minecraft.screen
Modifier and TypeMethodDescriptionboolean
AbstractFurnaceScreenHandler.matches
(RecipeEntry<? extends Recipe<Inventory>> recipe) abstract boolean
AbstractRecipeScreenHandler.matches
(RecipeEntry<? extends Recipe<C>> recipe) boolean
CraftingScreenHandler.matches
(RecipeEntry<? extends Recipe<RecipeInputInventory>> recipe) boolean
PlayerScreenHandler.matches
(RecipeEntry<? extends Recipe<RecipeInputInventory>> recipe)