Class CraftingType
java.lang.Object
com.minecolonies.api.crafting.registry.CraftingType
- Direct Known Subclasses:
BrewingCraftingType,RecipeCraftingType
Class to represent the different types of crafting supported by MineColonies
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCraftingType(@NotNull net.minecraft.resources.ResourceLocation id) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract @NotNull List<IGenericRecipe>findRecipes(@NotNull net.minecraft.world.item.crafting.RecipeManager recipeManager, @Nullable net.minecraft.world.level.Level world) Find all teachable recipes supported by this particular crafting typeinthashCode()
-
Constructor Details
-
CraftingType
protected CraftingType(@NotNull @NotNull net.minecraft.resources.ResourceLocation id)
-
-
Method Details
-
findRecipes
@NotNull public abstract @NotNull List<IGenericRecipe> findRecipes(@NotNull @NotNull net.minecraft.world.item.crafting.RecipeManager recipeManager, @Nullable @Nullable net.minecraft.world.level.Level world) Find all teachable recipes supported by this particular crafting type- Parameters:
recipeManager- the vanilla recipe managerworld- the world (if available)- Returns:
- the list of teachable recipes
-
equals
-
hashCode
public int hashCode()
-