Class ChiselingRecipeProvider.ChiselingRecipeBuilder
java.lang.Object
com.supermartijn642.rechiseled.api.ChiselingRecipeProvider.ChiselingRecipeBuilder
- Enclosing class:
- ChiselingRecipeProvider
-
Method Summary
Modifier and TypeMethodDescriptionadd(@Nullable net.minecraft.world.item.Item regularItem, @Nullable net.minecraft.world.item.Item connectingItem, boolean optional) Add a new entry to this recipe builder.add(net.minecraft.world.item.Item regularItem, net.minecraft.world.item.Item connectingItem) Adds 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.voidoverwrite(boolean overwrite) Sets the overwrite flag for this recipe builder.parent(net.minecraft.resources.ResourceLocation parent) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
parent
@Deprecated(forRemoval=true) @ScheduledForRemoval(inVersion="1.2.0") public ChiselingRecipeProvider.ChiselingRecipeBuilder parent(net.minecraft.resources.ResourceLocation parent) Deprecated, for removal: This API element is subject to removal in a future version.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
-
overwrite
public void overwrite(boolean overwrite) Sets the overwrite flag for this recipe builder. If overwrite is true, any entries that came before this one in the resource stack will be discarded. The overwrite flag works similarly to the 'replace' key for tags.- Parameters:
overwrite- whether the lower level resources' entries should be overwritten
-
add
public ChiselingRecipeProvider.ChiselingRecipeBuilder add(@Nullable @Nullable net.minecraft.world.item.Item regularItem, @Nullable @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
-