public abstract class ProcessingRecipeGen extends CreateRecipeProvider
CreateRecipeProvider.GeneratedRecipe, CreateRecipeProvider.I, CreateRecipeProvider.Marker| Modifier and Type | Field and Description |
|---|---|
protected static int |
BOTTLE |
protected static int |
BUCKET |
protected static java.util.List<ProcessingRecipeGen> |
GENERATORS |
all| Constructor and Description |
|---|
ProcessingRecipeGen(net.minecraft.data.DataGenerator generator) |
| Modifier and Type | Method and Description |
|---|---|
protected <T extends ProcessingRecipe<?>> |
create(net.minecraft.util.ResourceLocation name,
java.util.function.UnaryOperator<ProcessingRecipeBuilder<T>> transform)
Create a new processing recipe, with recipe definitions provided by the
function
|
protected <T extends ProcessingRecipe<?>> |
create(java.lang.String namespace,
java.util.function.Supplier<net.minecraft.util.IItemProvider> singleIngredient,
java.util.function.UnaryOperator<ProcessingRecipeBuilder<T>> transform)
Create a processing recipe with a single itemstack ingredient, using its id
as the name of the recipe
|
java.lang.String |
getName() |
protected abstract IRecipeTypeInfo |
getRecipeType() |
protected <T extends ProcessingRecipe<?>> |
getSerializer() |
static void |
registerAll(net.minecraft.data.DataGenerator gen) |
buildShapelessRecipes, registerhas, has, insideOf, inventoryTrigger, run, saveAdvancementprotected static final java.util.List<ProcessingRecipeGen> GENERATORS
protected static final int BUCKET
protected static final int BOTTLE
public ProcessingRecipeGen(net.minecraft.data.DataGenerator generator)
public static void registerAll(net.minecraft.data.DataGenerator gen)
protected <T extends ProcessingRecipe<?>> CreateRecipeProvider.GeneratedRecipe create(java.lang.String namespace, java.util.function.Supplier<net.minecraft.util.IItemProvider> singleIngredient, java.util.function.UnaryOperator<ProcessingRecipeBuilder<T>> transform)
protected <T extends ProcessingRecipe<?>> CreateRecipeProvider.GeneratedRecipe create(net.minecraft.util.ResourceLocation name, java.util.function.UnaryOperator<ProcessingRecipeBuilder<T>> transform)
protected abstract IRecipeTypeInfo getRecipeType()
protected <T extends ProcessingRecipe<?>> ProcessingRecipeSerializer<T> getSerializer()
public java.lang.String getName()
getName in interface net.minecraft.data.IDataProvidergetName in class net.minecraft.data.RecipeProvider