Class ChiselingRecipeProvider.ChiselingRecipeBuilder

java.lang.Object
com.supermartijn642.rechiseled.api.ChiselingRecipeProvider.ChiselingRecipeBuilder
Enclosing class:
ChiselingRecipeProvider

protected class ChiselingRecipeProvider.ChiselingRecipeBuilder extends Object
  • 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. BaseChiselingRecipes contains recipe locations for the default rechiseled recipes.
      Parameters:
      parent - the parent recipe location
      Throws:
      IllegalArgumentException - when parent recipe 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 textures
      connectingItem - the variant with connecting textures
      optional - whether the recipe may ignore the entry when the entry's items are not present
      Throws:
      IllegalArgumentException - when both regularItem and connectingItem are null
    • 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 textures
      connectingItem - the variant with connecting textures
      Throws:
      IllegalArgumentException - when both regularItem and connectingItem are null
    • 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 textures
      optional - whether the recipe may ignore the entry when the entry's items are not present
      Throws:
      IllegalArgumentException - when item is null
    • 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 - when item is null
    • 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 textures
      optional - whether the recipe may ignore the entry when the entry's items are not present
      Throws:
      IllegalArgumentException - when item is null
    • 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 - when item is null