Class BaseSherdDatagenSuite<T extends BaseSherdDatagenSuite<T>>

java.lang.Object
dev.thomasglasser.sherdsapi.api.data.BaseSherdDatagenSuite<T>
Direct Known Subclasses:
FabricSherdDatagenSuite

public abstract class BaseSherdDatagenSuite<T extends BaseSherdDatagenSuite<T>> extends Object
Loader-agnostic base implementation of Sherd datagen
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
    The id of the mod making sherds
    protected List<com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<Sherd>,Sherd>>
    The list of sherds to be generated and their keys
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    A designated method for making sherd suites if the chain method is not preferred
    makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items)
     
    makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items, String pattern)
     
    makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
     
    makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, String pattern)
     
    makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient)
     
    makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient, String pattern)
     
    makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(String key, net.minecraft.world.level.ItemLike item)
     
    makeSherdSuite(String key, net.minecraft.world.level.ItemLike item, String pattern)
     
    makeSherdSuite(String key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(String key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items)
    Creates a sherd with the same sherd and pattern key and given items and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    Creates a sherd with the given key, items, and pattern and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    Creates a sherd with the same sherd and pattern key and given tag and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    Creates a sherd with the given key, tag, and pattern and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient)
    Creates a sherd with the same sherd and pattern key and given ingredient and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    Creates a sherd with the given key, ingredient, and pattern and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item)
    Creates a sherd with the same sherd and pattern key and given item and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    Creates a sherd with the given key, item, and pattern and adds it to the suite
    makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, String pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
     
    makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern)
     
    net.minecraft.resources.ResourceLocation
    modLoc(String path)
    Creates a resource location with the generator's mod ID and the given path
    net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern>
    Creates a resource key for a pattern with the given path
    protected net.minecraft.resources.ResourceKey<Sherd>
    Creates a resource key for a sherd with the given path.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • modId

      protected String modId
      The id of the mod making sherds
    • sherds

      protected List<com.mojang.datafixers.util.Pair<net.minecraft.resources.ResourceKey<Sherd>,Sherd>> sherds
      The list of sherds to be generated and their keys
  • Constructor Details

    • BaseSherdDatagenSuite

      public BaseSherdDatagenSuite(String modId)
      Parameters:
      modId - The id of the mod making sherds.
  • Method Details

    • generate

      public void generate()
      A designated method for making sherd suites if the chain method is not preferred
    • sherdKey

      protected net.minecraft.resources.ResourceKey<Sherd> sherdKey(String path)
      Creates a resource key for a sherd with the given path.
      Parameters:
      path - The path of the sherd.
      Returns:
      The resource key of the sherd.
    • patternKey

      public net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> patternKey(String path)
      Creates a resource key for a pattern with the given path
      Parameters:
      path - The path of the pattern
      Returns:
      The resource key of the pattern
    • modLoc

      public net.minecraft.resources.ResourceLocation modLoc(String path)
      Creates a resource location with the generator's mod ID and the given path
      Parameters:
      path - The path of the resource
      Returns:
      The location of the resource
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
      Creates a sherd with the given key, ingredient, and pattern and adds it to the suite
      Parameters:
      key - The key of the sherd
      ingredient - The ingredient used to make the sherd
      pattern - The key of the pattern
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
      Creates a sherd with the given key, items, and pattern and adds it to the suite
      Parameters:
      key - The key of the sherd
      items - The items that can be used to make the sherd
      pattern - The key of the pattern
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
      Creates a sherd with the given key, item, and pattern and adds it to the suite
      Parameters:
      key - The key of the sherd
      item - The item used to make the sherd
      pattern - The key of the pattern
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.level.ItemLike item, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
      Creates a sherd with the given key, tag, and pattern and adds it to the suite
      Parameters:
      key - The key of the sherd
      tag - The tag with items that can be used to make the sherd
      pattern - The key of the pattern
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, net.minecraft.resources.ResourceLocation pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag, String pattern)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.item.crafting.Ingredient ingredient)
      Creates a sherd with the same sherd and pattern key and given ingredient and adds it to the suite
      Parameters:
      key - The key of the sherd and pattern
      ingredient - The ingredient used to make the sherd
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.item.crafting.Ingredient ingredient)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, List<net.minecraft.world.level.ItemLike> items)
      Creates a sherd with the same sherd and pattern key and given items and adds it to the suite
      Parameters:
      key - The key of the sherd and pattern
      items - The items that can be used to make the sherd
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, List<net.minecraft.world.level.ItemLike> items)
    • makeSherdSuite

      public T makeSherdSuite(String key, List<net.minecraft.world.level.ItemLike> items)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
      Creates a sherd with the same sherd and pattern key and given tag and adds it to the suite
      Parameters:
      key - The key of the sherd and pattern
      tag - The tag with items that can be used to make the sherd
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> tag)
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceKey<Sherd> key, net.minecraft.world.level.ItemLike item)
      Creates a sherd with the same sherd and pattern key and given item and adds it to the suite
      Parameters:
      key - The key of the sherd and pattern
      item - The item used to make the sherd
      Returns:
      The datagen suite with the sherd added
    • makeSherdSuite

      public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item)
    • makeSherdSuite

      public T makeSherdSuite(String key, net.minecraft.world.level.ItemLike item)