Uses of Interface
net.minecraft.recipe.Recipe
Package
Description
-
Uses of Recipe in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
void
RecipeUnlockedCriterion.trigger(ServerPlayerEntity player, Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.block.entity
Modifier and TypeMethodDescriptionAbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience(ServerWorld world, Vec3d pos)
Modifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.canAcceptRecipeOutput(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count)
private static boolean
AbstractFurnaceBlockEntity.craftRecipe(@Nullable Recipe<?> recipe, DefaultedList<ItemStack> slots, int count)
void
AbstractFurnaceBlockEntity.setLastRecipe(@Nullable Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.client.gui.screen.recipebook
Modifier and TypeFieldDescriptionprivate Recipe<?>
RecipeAlternativesWidget.lastClickedRecipe
private Recipe<?>
RecipeBookResults.lastClickedRecipe
(package private) Recipe<?>
RecipeAlternativesWidget.AlternativeButtonWidget.recipe
private Recipe<?>
RecipeBookGhostSlots.recipe
Modifier and TypeFieldDescriptionRecipeResultCollection.craftableRecipes
RecipeResultCollection.fittingRecipes
RecipeResultCollection.recipes
RecipeResultCollection.unlockedRecipes
Modifier and TypeMethodDescriptionRecipe<?>
AnimatedResultButton.currentRecipe()
Recipe<?>
RecipeAlternativesWidget.getLastClickedRecipe()
RecipeBookResults.getLastClickedRecipe()
RecipeBookGhostSlots.getRecipe()
Modifier and TypeMethodDescriptionRecipeResultCollection.getAllRecipes()
RecipeResultCollection.getRecipes(boolean craftable)
AnimatedResultButton.getResults()
RecipeResultCollection.getResults(boolean craftableOnly)
Modifier and TypeMethodDescriptionprotected void
RecipeAlternativesWidget.AlternativeButtonWidget.alignRecipe(Recipe<?> recipe)
protected void
RecipeAlternativesWidget.FurnaceAlternativeButtonWidget.alignRecipe(Recipe<?> recipe)
boolean
RecipeResultCollection.isCraftable(Recipe<?> recipe)
void
void
AbstractFurnaceRecipeBookScreen.showGhostRecipe(Recipe<?> recipe, List<Slot> slots)
void
RecipeBookWidget.showGhostRecipe(Recipe<?> recipe, List<Slot> slots)
Modifier and TypeMethodDescriptionvoid
RecipeBookResults.onRecipesDisplayed(List<Recipe<?>> recipes)
void
RecipeBookWidget.onRecipesDisplayed(List<Recipe<?>> recipes)
void
RecipeDisplayListener.onRecipesDisplayed(List<Recipe<?>> recipes)
private static boolean
RecipeResultCollection.shouldHaveSingleOutput(List<Recipe<?>> recipes)
ModifierConstructorDescriptionAlternativeButtonWidget(int x, int y, Recipe<?> recipe, boolean craftable)
FurnaceAlternativeButtonWidget(int x, int y, Recipe<?> recipe, boolean craftable)
-
Uses of Recipe in net.minecraft.client.network
Modifier and TypeMethodDescriptionvoid
ClientPlayerInteractionManager.clickRecipe(int syncId, Recipe<?> recipe, boolean craftAll)
void
ClientPlayerEntity.onRecipeDisplayed(Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.client.recipebook
Modifier and TypeMethodDescriptionprivate static Map<RecipeBookGroup,List<List<Recipe<?>>>>
ClientRecipeBook.method_30283(Iterable<Recipe<?>> iterable)
Modifier and TypeMethodDescriptionprivate static RecipeBookGroup
ClientRecipeBook.getGroupForRecipe(Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.client.toast
Modifier and TypeMethodDescriptionprivate void
RecipeToast.addRecipes(Recipe<?> recipes)
static void
RecipeToast.show(ToastManager manager, Recipe<?> recipes)
-
Uses of Recipe in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic Recipe<?>
IdentifierArgumentType.getRecipeArgument(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String argumentName)
-
Uses of Recipe in net.minecraft.entity.player
Modifier and TypeMethodDescriptionint
PlayerEntity.lockRecipes(Collection<Recipe<?>> recipes)
int
PlayerEntity.unlockRecipes(Collection<Recipe<?>> recipes)
-
Uses of Recipe in net.minecraft.inventory
Modifier and TypeMethodDescriptionvoid
CraftingResultInventory.setLastRecipe(@Nullable Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.network.packet.c2s.play
ModifierConstructorDescriptionCraftRequestC2SPacket(int syncId, Recipe<?> recipe, boolean craftAll)
RecipeBookDataC2SPacket(Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.network.packet.s2c.play
Modifier and TypeMethodDescriptionstatic <T extends Recipe<?>>
voidSynchronizeRecipesS2CPacket.writeRecipe(PacketByteBuf buf, T recipe)
Modifier and TypeMethodDescriptionstatic Recipe<?>
SynchronizeRecipesS2CPacket.readRecipe(PacketByteBuf buf)
-
Uses of Recipe in net.minecraft.recipe
Modifier and TypeInterfaceDescriptioninterface
RecipeSerializer<T extends Recipe<?>>
interface
RecipeType<T extends Recipe<?>>
class
SpecialRecipeSerializer<T extends Recipe<?>>
Modifier and TypeClassDescriptionclass
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
class
Modifier and TypeFieldDescriptionprivate Map<RecipeType<?>,Map<Identifier,Recipe<?>>>
RecipeManager.recipes
Modifier and TypeMethodDescriptionRecipeManager.getAllMatches(RecipeType<T> type, C inventory, World world)
private <C extends Inventory, T extends Recipe<C>>
Map<Identifier,Recipe<C>>RecipeManager.getAllOfType(RecipeType<T> type)
RecipeManager.getFirstMatch(RecipeType<T> type, C inventory, World world)
<C extends Inventory, T extends Recipe<C>>
DefaultedList<ItemStack>RecipeManager.getRemainingStacks(RecipeType<T> recipeType, C inventory, World world)
RecipeManager.listAllOfType(RecipeType<T> recipeType)
Creates a list of all recipes of the given type.static <S extends RecipeSerializer<T>, T extends Recipe<?>>
Sstatic <T extends Recipe<?>>
RecipeType<T>Modifier and TypeMethodDescriptionstatic Recipe<?>
RecipeManager.deserialize(Identifier id, JsonObject json)
RecipeUnlocker.getLastRecipe()
Modifier and TypeMethodDescriptionRecipeManager.get(Identifier id)
private <C extends Inventory, T extends Recipe<C>>
Map<Identifier,Recipe<C>>RecipeManager.getAllOfType(RecipeType<T> type)
Collection<Recipe<?>>
RecipeManager.values()
Modifier and TypeMethodDescriptiondefault void
RecipeGridAligner.alignRecipeToGrid(int gridWidth, int gridHeight, int gridOutputSlot, Recipe<?> recipe, Iterator<T> inputs, int amount)
int
RecipeMatcher.countCrafts(Recipe<?> recipe, int limit, @Nullable IntList output)
Determines the number of crafts that can be produced for a recipe using the collected resources available to this crafter.int
RecipeMatcher.countCrafts(Recipe<?> recipe, @Nullable IntList output)
Determines the number of crafts that can be produced for a recipe using the collected resources available to this crafter.protected void
InputSlotFiller.fillInputSlots(Recipe<C> recipe, boolean craftAll)
void
InputSlotFiller.fillInputSlots(ServerPlayerEntity entity, @Nullable Recipe<C> recipe, boolean craftAll)
boolean
Attempts to match the recipe against the collected inputs.boolean
Attempts to match the recipe against the collected inputs.void
RecipeUnlocker.setLastRecipe(@Nullable Recipe<?> recipe)
default boolean
RecipeUnlocker.shouldCraftRecipe(World world, ServerPlayerEntity player, Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.recipe.book
Modifier and TypeMethodDescriptionvoid
boolean
void
void
RecipeBook.onRecipeDisplayed(Recipe<?> recipe)
void
boolean
RecipeBook.shouldDisplay(Recipe<?> recipe)
-
Uses of Recipe in net.minecraft.screen
Modifier and TypeMethodDescriptionvoid
AbstractRecipeScreenHandler.fillInputSlots(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player)
boolean
abstract boolean
boolean
CraftingScreenHandler.matches(Recipe<? super CraftingInventory> recipe)
boolean
PlayerScreenHandler.matches(Recipe<? super CraftingInventory> recipe)
-
Uses of Recipe in net.minecraft.server.network
Modifier and TypeMethodDescriptionprivate void
ServerRecipeBook.handleList(NbtList list, Consumer<Recipe<?>> handler, RecipeManager recipeManager)
int
ServerPlayerEntity.lockRecipes(Collection<Recipe<?>> recipes)
int
ServerRecipeBook.lockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)
int
ServerPlayerEntity.unlockRecipes(Collection<Recipe<?>> recipes)
int
ServerRecipeBook.unlockRecipes(Collection<Recipe<?>> recipes, ServerPlayerEntity player)