Class ChiselingRecipeProvider.ChiselingRecipeBuilder
java.lang.Object
com.supermartijn642.rechiseled.api.ChiselingRecipeProvider.ChiselingRecipeBuilder
- Enclosing class:
- ChiselingRecipeProvider
-
Method Summary
Modifier and TypeMethodDescriptionadd(net.minecraft.world.item.Item regularItem, net.minecraft.world.item.Item connectingItem) Adds a new entry to this recipe builder.add(net.minecraft.world.item.Item regularItem, net.minecraft.world.item.Item connectingItem, boolean optional) Add a new entry to this recipe builder.addConnectingItem(net.minecraft.world.item.Item item) Adds a new entry to this recipe builder for an item with connecting textures.addConnectingItem(net.minecraft.world.item.Item item, boolean optional) Adds a new entry to this recipe builder for an item with connecting textures.addRegularItem(net.minecraft.world.item.Item item) Adds a new entry to this recipe builder for an item without connecting textures.addRegularItem(net.minecraft.world.item.Item item, boolean optional) Adds a new entry to this recipe builder for an item without connecting textures.parent(net.minecraft.resources.ResourceLocation parent) Sets a parent recipe for this recipe builder.
-
Method Details
-
parent
public ChiselingRecipeProvider.ChiselingRecipeBuilder parent(net.minecraft.resources.ResourceLocation parent) Sets a parent recipe for this recipe builder. All entries from this recipe builder will be combined with the parent recipe.BaseChiselingRecipescontains recipe locations for the default rechiseled recipes.- Parameters:
parent- the parent recipe location- Throws:
IllegalArgumentException- whenparentrecipe does not exist
-
add
public ChiselingRecipeProvider.ChiselingRecipeBuilder add(@Nullable net.minecraft.world.item.Item regularItem, @Nullable net.minecraft.world.item.Item connectingItem, boolean optional) Add a new entry to this recipe builder. Each entry can have a regular variant and a variant with connecting textures.- Parameters:
regularItem- the regular variant, i.e. without connecting texturesconnectingItem- the variant with connecting texturesoptional- whether the recipe may ignore the entry when the entry's items are not present- Throws:
IllegalArgumentException- when bothregularItemandconnectingItemarenull
-
add
public ChiselingRecipeProvider.ChiselingRecipeBuilder add(net.minecraft.world.item.Item regularItem, net.minecraft.world.item.Item connectingItem) Adds a new entry to this recipe builder. Each entry can have a regular variant and a variant with connecting textures.- Parameters:
regularItem- the regular variant, i.e. without connecting texturesconnectingItem- the variant with connecting textures- Throws:
IllegalArgumentException- when bothregularItemandconnectingItemarenull
-
addRegularItem
public ChiselingRecipeProvider.ChiselingRecipeBuilder addRegularItem(net.minecraft.world.item.Item item, boolean optional) Adds a new entry to this recipe builder for an item without connecting textures.- Parameters:
item- an item without connecting texturesoptional- whether the recipe may ignore the entry when the entry's items are not present- Throws:
IllegalArgumentException- whenitemisnull
-
addRegularItem
public ChiselingRecipeProvider.ChiselingRecipeBuilder addRegularItem(net.minecraft.world.item.Item item) Adds a new entry to this recipe builder for an item without connecting textures.- Parameters:
item- an item without connecting textures- Throws:
IllegalArgumentException- whenitemisnull
-
addConnectingItem
public ChiselingRecipeProvider.ChiselingRecipeBuilder addConnectingItem(net.minecraft.world.item.Item item, boolean optional) Adds a new entry to this recipe builder for an item with connecting textures.- Parameters:
item- an item with connecting texturesoptional- whether the recipe may ignore the entry when the entry's items are not present- Throws:
IllegalArgumentException- whenitemisnull
-
addConnectingItem
public ChiselingRecipeProvider.ChiselingRecipeBuilder addConnectingItem(net.minecraft.world.item.Item item) Adds a new entry to this recipe builder for an item with connecting textures.- Parameters:
item- an item with connecting textures- Throws:
IllegalArgumentException- whenitemisnull
-