Class ChiselingRecipeProvider.ChiselingRecipeBuilder

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

protected class ChiselingRecipeProvider.ChiselingRecipeBuilder extends Object
  • 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. BaseChiselingRecipes contains recipe locations for the default rechiseled recipes.
      Parameters:
      parent - the parent recipe location
      Throws:
      IllegalArgumentException - when parent recipe 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 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