Uses of Record Class
net.minecraft.recipe.RecipeEntry
Packages that use RecipeEntry
Package
Description
-
Uses of RecipeEntry in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type RecipeEntryModifier and TypeMethodDescriptionbooleanRecipeUnlockedCriterion.Conditions.matches(RecipeEntry<?> recipe) voidRecipeUnlockedCriterion.trigger(ServerPlayerEntity player, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.block
Methods in net.minecraft.block that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionstatic Optional<RecipeEntry<CraftingRecipe>> CrafterBlock.getCraftingRecipe(ServerWorld world, CraftingRecipeInput input) Methods in net.minecraft.block with parameters of type RecipeEntryModifier and TypeMethodDescriptionprivate voidCrafterBlock.transferOrSpawnStack(ServerWorld world, BlockPos pos, CrafterBlockEntity blockEntity, ItemStack stack, BlockState state, RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.block.entity
Methods in net.minecraft.block.entity that return RecipeEntryMethods in net.minecraft.block.entity that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionList<RecipeEntry<?>> AbstractFurnaceBlockEntity.getRecipesUsedAndDropExperience(ServerWorld world, Vec3d pos) Methods in net.minecraft.block.entity with parameters of type RecipeEntryModifier and TypeMethodDescriptionprivate static booleanAbstractFurnaceBlockEntity.canAcceptRecipeOutput(DynamicRegistryManager dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) private static booleanAbstractFurnaceBlockEntity.craftRecipe(DynamicRegistryManager dynamicRegistryManager, @Nullable RecipeEntry<? extends AbstractCookingRecipe> recipe, SingleStackRecipeInput input, DefaultedList<ItemStack> inventory, int maxCount) voidAbstractFurnaceBlockEntity.setLastRecipe(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.command.argument
Methods in net.minecraft.command.argument that return RecipeEntryModifier and TypeMethodDescriptionstatic RecipeEntry<?> RegistryKeyArgumentType.getRecipeEntry(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
Uses of RecipeEntry in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoidPlayerEntity.onRecipeCrafted(RecipeEntry<?> recipe, List<ItemStack> ingredients) Method parameters in net.minecraft.entity.player with type arguments of type RecipeEntryModifier and TypeMethodDescriptionintPlayerEntity.lockRecipes(Collection<RecipeEntry<?>> recipes) intPlayerEntity.unlockRecipes(Collection<RecipeEntry<?>> recipes) -
Uses of RecipeEntry in net.minecraft.inventory
Fields in net.minecraft.inventory declared as RecipeEntryModifier and TypeFieldDescriptionprivate @Nullable RecipeEntry<?> CraftingResultInventory.lastRecipeMethods in net.minecraft.inventory that return RecipeEntryMethods in net.minecraft.inventory with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoidCraftingResultInventory.setLastRecipe(@Nullable RecipeEntry<?> recipe) -
Uses of RecipeEntry in net.minecraft.recipe
Fields in net.minecraft.recipe declared as RecipeEntryModifier and TypeFieldDescriptionprivate final RecipeEntry<?> ServerRecipeManager.ServerRecipe.parentThe field for theparentrecord component.private final @Nullable RecipeEntry<CraftingRecipe> RecipeCache.CachedRecipe.valueThe field for thevaluerecord component.Fields in net.minecraft.recipe with type parameters of type RecipeEntryModifier and TypeFieldDescriptionprivate final Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> PreparedRecipes.byKeyprivate final Multimap<RecipeType<?>, RecipeEntry<?>> PreparedRecipes.byTypestatic final PacketCodec<RegistryByteBuf, RecipeEntry<?>> RecipeEntry.PACKET_CODECMethods in net.minecraft.recipe that return RecipeEntryModifier 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 givenidandtype, or empty if there is no such recipe.RecipeUnlocker.getLastRecipe()RecipeEntry<?> ServerRecipeManager.ServerRecipe.parent()Returns the value of theparentrecord component.RecipeCache.CachedRecipe.value()Returns the value of thevaluerecord component.Methods in net.minecraft.recipe that return types with arguments of type RecipeEntryModifier 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 giventypethat match the giveninventoryandworld.<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.Methods in net.minecraft.recipe with parameters of type RecipeEntryModifier and TypeMethodDescriptionprivate voidRecipeCache.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 voidInputSlotFiller.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) booleanInputSlotFiller.Handler.matches(RecipeEntry<T> entry) voidRecipeUnlocker.setLastRecipe(@Nullable RecipeEntry<?> recipe) default booleanRecipeUnlocker.shouldCraftRecipe(ServerPlayerEntity player, RecipeEntry<?> recipe) InputSlotFiller.tryFill(RecipeEntry<R> recipe, RecipeFinder finder) Method parameters in net.minecraft.recipe with type arguments of type RecipeEntryModifier and TypeMethodDescriptionprivate static List<ServerRecipeManager.ServerRecipe> ServerRecipeManager.collectServerRecipes(Iterable<RecipeEntry<?>> recipes, FeatureSet enabledFeatures) Filters recipes byenabledFeaturesand assigns an integer ID to each recipe and recipe group.static PreparedRecipesPreparedRecipes.of(Iterable<RecipeEntry<?>> recipes) Constructors in net.minecraft.recipe with parameters of type RecipeEntryModifierConstructorDescription(package private)CachedRecipe(DefaultedList<ItemStack> defaultedList, int int2, int int3, @Nullable RecipeEntry<CraftingRecipe> recipeEntry) ServerRecipe(RecipeDisplayEntry recipeDisplayEntry, RecipeEntry<?> recipeEntry) Constructor parameters in net.minecraft.recipe with type arguments of type RecipeEntryModifierConstructorDescriptionprivatePreparedRecipes(Multimap<RecipeType<?>, RecipeEntry<?>> byType, Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> byKey) privatePreparedRecipes(Multimap<RecipeType<?>, RecipeEntry<?>> byType, Map<RegistryKey<Recipe<?>>, RecipeEntry<?>> byKey) -
Uses of RecipeEntry in net.minecraft.recipe.display
Fields in net.minecraft.recipe.display with type parameters of type RecipeEntryModifier and TypeFieldDescriptionprivate final Optional<RecipeEntry<T>> CuttingRecipeDisplay.recipeThe field for thereciperecord component.Methods in net.minecraft.recipe.display that return types with arguments of type RecipeEntryModifier and TypeMethodDescriptionCuttingRecipeDisplay.recipe()Returns the value of thereciperecord component.Constructor parameters in net.minecraft.recipe.display with type arguments of type RecipeEntryModifierConstructorDescriptionCuttingRecipeDisplay(SlotDisplay slotDisplay, Optional<RecipeEntry<T>> optional) -
Uses of RecipeEntry in net.minecraft.screen
Methods in net.minecraft.screen with parameters of type RecipeEntryModifier 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 voidAbstractCraftingScreenHandler.onInputSlotFillFinish(ServerWorld world, RecipeEntry<CraftingRecipe> recipe) voidCraftingScreenHandler.onInputSlotFillFinish(ServerWorld world, RecipeEntry<CraftingRecipe> recipe) protected static voidCraftingScreenHandler.updateResult(ScreenHandler handler, ServerWorld world, PlayerEntity player, RecipeInputInventory craftingInventory, CraftingResultInventory resultInventory, @Nullable RecipeEntry<CraftingRecipe> recipe) -
Uses of RecipeEntry in net.minecraft.server.network
Methods in net.minecraft.server.network with parameters of type RecipeEntryModifier and TypeMethodDescriptionvoidServerPlayerEntity.onRecipeCrafted(RecipeEntry<?> recipe, List<ItemStack> ingredients) Method parameters in net.minecraft.server.network with type arguments of type RecipeEntryModifier and TypeMethodDescriptionintServerPlayerEntity.lockRecipes(Collection<RecipeEntry<?>> recipes) intServerRecipeBook.lockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player) intServerPlayerEntity.unlockRecipes(Collection<RecipeEntry<?>> recipes) intServerRecipeBook.unlockRecipes(Collection<RecipeEntry<?>> recipes, ServerPlayerEntity player)