Class BaseSherdDatagenSuite<T extends BaseSherdDatagenSuite<T>>
java.lang.Object
dev.thomasglasser.sherdsapi.api.data.BaseSherdDatagenSuite<T>
- Direct Known Subclasses:
FabricSherdDatagenSuite
Loader-agnostic base implementation of Sherd datagen
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()A designated method for making sherd suites if the chain method is not preferredmakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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 suitemakeSherdSuite(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.ResourceLocationCreates a resource location with the generator's mod ID and the given pathnet.minecraft.resources.ResourceKey<net.minecraft.world.level.block.entity.DecoratedPotPattern> patternKey(String path) Creates a resource key for a pattern with the given pathprotected net.minecraft.resources.ResourceKey<Sherd> Creates a resource key for a sherd with the given path.
-
Field Details
-
Constructor Details
-
BaseSherdDatagenSuite
- 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
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
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 sherdingredient- The ingredient used to make the sherdpattern- 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
-
makeSherdSuite
-
makeSherdSuite
public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.item.crafting.Ingredient ingredient, net.minecraft.resources.ResourceLocation pattern) -
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
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 sherditems- The items that can be used to make the sherdpattern- The key of the pattern- Returns:
- The datagen suite with the sherd added
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
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 sherditem- The item used to make the sherdpattern- 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
-
makeSherdSuite
-
makeSherdSuite
public T makeSherdSuite(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.ItemLike item, net.minecraft.resources.ResourceLocation pattern) -
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
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 sherdtag- The tag with items that can be used to make the sherdpattern- 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
-
makeSherdSuite
-
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
-
makeSherdSuite
-
makeSherdSuite
-
makeSherdSuite
-
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 patterningredient- 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
-
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 patternitems- The items that can be used to make the sherd- Returns:
- The datagen suite with the sherd added
-
makeSherdSuite
-
makeSherdSuite
-
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 patterntag- 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
-
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 patternitem- 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
-