Uses of Record Class
net.minecraft.recipe.RecipeEntry
Package
Description
-
Uses of RecipeEntry in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionboolean
RecipeUnlockedCriterion.Conditions.matches
(RecipeEntry<?> recipe) void
RecipeUnlockedCriterion.trigger
(ServerPlayerEntity player, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.block
Modifier and TypeMethodDescriptionstatic Optional
<RecipeEntry<CraftingRecipe>> CrafterBlock.getCraftingRecipe
(ServerWorld world, CraftingRecipeInput input) Modifier and TypeMethodDescriptionprivate void
CrafterBlock.transferOrSpawnStack
(ServerWorld world, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack stack, BlockState state, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.block.entity
Modifier and TypeMethodDescriptionList
<RecipeEntry<?>> AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience
(ServerWorld world, Vec3d pos) Modifier and TypeMethodDescriptionprivate static boolean
AbstractFurnaceBlockEntity.canAcceptRecipeOutput
(DynamicRegistryManager dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) private static boolean
AbstractFurnaceBlockEntity.craftRecipe
(DynamicRegistryManager dynamicRegisryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) void
AbstractFurnaceBlockEntity.setLastRecipe
(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic RecipeEntry
<?> RegistryKeyArgumentType.getRecipeEntry
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of RecipeEntry in net.minecraft.entity.player
Modifier and TypeMethodDescriptionvoid
PlayerEntity.onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) Modifier and TypeMethodDescriptionint
PlayerEntity.lockRecipes
(Collection<RecipeEntry<?>> recipes) int
PlayerEntity.unlockRecipes
(Collection<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.inventory
Modifier and TypeFieldDescriptionprivate @Nullable RecipeEntry
<?> CraftingResultInventory.lastRecipe
Modifier and TypeMethodDescriptionvoid
CraftingResultInventory.setLastRecipe
(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.recipe
Modifier and TypeFieldDescriptionprivate final RecipeEntry
<?> ServerRecipeManager.ServerRecipe.parent
The field for theparent
record component.private final @Nullable RecipeEntry
<CraftingRecipe> RecipeCache.CachedRecipe.value
The field for thevalue
record component.Modifier and TypeFieldDescriptionprivate final Map
<RegistryKey<Recipe<?>>, RecipeEntry<?>> PreparedRecipes.byKey
private final Multimap
<RecipeType<?>, RecipeEntry<?>> PreparedRecipes.byType
static final PacketCodec
<RegistryByteBuf, RecipeEntry<?>> RecipeEntry.PACKET_CODEC
Modifier and TypeMethodDescriptionprotected static RecipeEntry
<?> ServerRecipeManager.deserialize
(RegistryKey<Recipe<?>> key, JsonObject json, RegistryWrapper.WrapperLookup registries) Reads a recipe from a JSON object.PreparedRecipes.get
(RegistryKey<Recipe<?>> key) private <T extends Recipe<?>>
@Nullable RecipeEntry<T> ServerRecipeManager.get
(RecipeType<T> type, RegistryKey<Recipe<?>> key) Returns a recipe with the givenid
andtype
, or empty if there is no such recipe.RecipeUnlocker.getLastRecipe()
RecipeEntry
<?> ServerRecipeManager.ServerRecipe.parent()
Returns the value of theparent
record component.RecipeCache.CachedRecipe.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescription<I extends RecipeInput,
T extends Recipe<I>>
Stream<RecipeEntry<T>> PreparedRecipes.find
(RecipeType<T> type, I input, World world) Optional
<RecipeEntry<?>> ServerRecipeManager.get
(RegistryKey<Recipe<?>> key) Returns a recipe with the givenid
, or empty if there is no such recipe.<I extends RecipeInput,
T extends Recipe<I>>
Collection<RecipeEntry<T>> PreparedRecipes.getAll
(RecipeType<T> type) private Optional
<RecipeEntry<CraftingRecipe>> RecipeCache.getAndCacheRecipe
(CraftingRecipeInput input, ServerWorld world) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world) Returns a recipe of the giventype
that match the giveninventory
andworld
.<I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RecipeEntry<T> recipe) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RegistryKey<Recipe<?>> recipe) ServerRecipeManager.MatchGetter.getFirstMatch
(I input, ServerWorld world) RecipeCache.getRecipe
(ServerWorld world, CraftingRecipeInput input) PreparedRecipes.recipes()
ServerRecipeManager.values()
Returns all recipes in this manager.Modifier and TypeMethodDescriptionprivate void
RecipeCache.cache
(CraftingRecipeInput input, @Nullable RecipeEntry<CraftingRecipe> recipe) static <I extends RecipeInput,
R extends Recipe<I>>
AbstractRecipeScreenHandler.PostFillActionInputSlotFiller.fill
(InputSlotFiller.Handler<R> handler, int width, int height, List<Slot> inputSlots, List<Slot> slotsToReturn, PlayerInventory inventory, RecipeEntry<R> recipe, boolean craftAll, boolean creative) private void
InputSlotFiller.fill
(RecipeEntry<R> recipe, RecipeFinder finder) <I extends RecipeInput,
T extends Recipe<I>>
Optional<RecipeEntry<T>> ServerRecipeManager.getFirstMatch
(RecipeType<T> type, I input, World world, @Nullable RecipeEntry<T> recipe) boolean
InputSlotFiller.Handler.matches
(RecipeEntry<T> entry) void
RecipeUnlocker.setLastRecipe
(@Nullable RecipeEntry<?> recipe) default boolean
RecipeUnlocker.shouldCraftRecipe
(ServerPlayerEntity player, RecipeEntry<?> recipe) InputSlotFiller.tryFill
(RecipeEntry<R> recipe, RecipeFinder finder) Modifier and TypeMethodDescriptionprivate static List
<ServerRecipeManager.ServerRecipe> ServerRecipeManager.collectServerRecipes
(Iterable<RecipeEntry<?>> recipes, FeatureSet enabledFeatures) Filters recipes byenabledFeatures
and assigns an integer ID to each recipe and recipe group.static PreparedRecipes
PreparedRecipes.of
(Iterable<RecipeEntry<?>> recipes) ModifierConstructorDescription(package private)
CachedRecipe
(DefaultedList<ItemStack> defaultedList, int int2, int int3, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) ServerRecipe
(RecipeDisplayEntry recipeDisplayEntry, RecipeEntry<?> recipeEntry) ModifierConstructorDescriptionprivate
PreparedRecipes
(Multimap<RecipeType<?>, RecipeEntry<?>> byType, Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> byKey) private
PreparedRecipes
(Multimap<RecipeType<?>, RecipeEntry<?>> byType, Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> byKey) -
Uses of RecipeEntry in net.minecraft.recipe.display
Modifier and TypeFieldDescriptionprivate final Optional
<RecipeEntry<T>> CuttingRecipeDisplay.recipe
The field for therecipe
record component.Modifier and TypeMethodDescriptionCuttingRecipeDisplay.recipe()
Returns the value of therecipe
record component.ModifierConstructorDescriptionCuttingRecipeDisplay
(SlotDisplay slotDisplay, Optional<RecipeEntry<T>> optional) -
Uses of RecipeEntry in net.minecraft.screen
Modifier and TypeMethodDescriptionAbstractCraftingScreenHandler.fillInputSlots
(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) AbstractFurnaceScreenHandler.fillInputSlots
(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) AbstractRecipeScreenHandler.fillInputSlots
(boolean craftAll, boolean creative, RecipeEntry<?> recipe, ServerWorld world, PlayerInventory inventory) protected void
AbstractCraftingScreenHandler.onInputSlotFillFinish
(ServerWorld world, RecipeEntry<CraftingRecipe> recipe) void
CraftingScreenHandler.onInputSlotFillFinish
(ServerWorld world, RecipeEntry<CraftingRecipe> recipe) protected static void
CraftingScreenHandler.updateResult
(ScreenHandler handler, ServerWorld world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory, @Nullable RecipeEntry<CraftingRecipe> recipe) -
Uses of RecipeEntry in net.minecraft.server.network
Modifier and TypeMethodDescriptionvoid
ServerPlayerEntity.onRecipeCrafted
(RecipeEntry<?> recipe, List<ItemStack> ingredients) Modifier and TypeMethodDescriptionint
ServerPlayerEntity.lockRecipes
(Collection<RecipeEntry<?>> recipes) int
ServerRecipeBook.lockRecipes
(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) int
ServerPlayerEntity.unlockRecipes
(Collection<RecipeEntry<?>> recipes) int
ServerRecipeBook.unlockRecipes
(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player)