Package com.minecolonies.core.generation
Class CustomRecipeProvider.CustomRecipeBuilder
java.lang.Object
com.minecolonies.core.generation.CustomRecipeProvider.CustomRecipeBuilder
- Enclosing class:
- CustomRecipeProvider
Helper to construct custom crafterrecipes for datagen
-
Method Summary
Modifier and TypeMethodDescriptionalternateOutputs(@NotNull List<net.minecraft.world.item.ItemStack> alternates) voidstatic @NotNull CustomRecipeProvider.CustomRecipeBuilderinputs(@NotNull List<ItemStorage> inputs) intermediate(@NotNull net.minecraft.world.level.block.Block intermediate) lootTable(@NotNull net.minecraft.resources.ResourceLocation lootTable) maxBuildingLevel(int level) maxResearchId(@NotNull net.minecraft.resources.ResourceLocation researchId) Sets a research id that is required before this recipe is no longer available.minBuildingLevel(int level) minResearchId(@NotNull net.minecraft.resources.ResourceLocation researchId) Sets a research id that is required before this recipe is available.mustExist(boolean value) requiredTool(@NotNull EquipmentTypeEntry toolType) result(@NotNull net.minecraft.world.item.ItemStack result) secondaryOutputs(@NotNull List<net.minecraft.world.item.ItemStack> secondary) showTooltip(boolean value)
-
Method Details
-
create
@NotNull public static @NotNull CustomRecipeProvider.CustomRecipeBuilder create(String crafter, String module, String id) -
inputs
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder inputs(@NotNull @NotNull List<ItemStorage> inputs) -
result
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder result(@NotNull @NotNull net.minecraft.world.item.ItemStack result) -
lootTable
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder lootTable(@NotNull @NotNull net.minecraft.resources.ResourceLocation lootTable) -
requiredTool
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder requiredTool(@NotNull @NotNull EquipmentTypeEntry toolType) -
secondaryOutputs
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder secondaryOutputs(@NotNull @NotNull List<net.minecraft.world.item.ItemStack> secondary) -
alternateOutputs
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder alternateOutputs(@NotNull @NotNull List<net.minecraft.world.item.ItemStack> alternates) -
intermediate
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder intermediate(@NotNull @NotNull net.minecraft.world.level.block.Block intermediate) -
minResearchId
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder minResearchId(@NotNull @NotNull net.minecraft.resources.ResourceLocation researchId) Sets a research id that is required before this recipe is available. Can be called multiple times to add additional researches, all of which will be required before this recipe is available.- Parameters:
researchId- the required research id.
-
maxResearchId
@NotNull public @NotNull CustomRecipeProvider.CustomRecipeBuilder maxResearchId(@NotNull @NotNull net.minecraft.resources.ResourceLocation researchId) Sets a research id that is required before this recipe is no longer available. Can be called multiple times to add additional researches, all of which will be required before this recipe is removed.- Parameters:
researchId- the excluded research id.
-
minBuildingLevel
-
maxBuildingLevel
-
mustExist
-
showTooltip
-
build
-