Class BaseTrimDatagenSuite.PatternConfig

java.lang.Object
dev.dhyces.trimmed.api.data.BaseTrimDatagenSuite.PatternConfig
Enclosing class:
BaseTrimDatagenSuite

public static class BaseTrimDatagenSuite.PatternConfig extends Object
  • Field Details

    • templateItem

      protected final net.minecraft.world.level.ItemLike templateItem
    • mainTranslation

      protected String mainTranslation
    • altTranslations

      protected Set<BaseTrimDatagenSuite.AltTranslation> altTranslations
    • mainTexture

      protected net.minecraft.resources.ResourceLocation mainTexture
    • leggingsTexture

      protected net.minecraft.resources.ResourceLocation leggingsTexture
    • copyRecipe

      protected net.minecraft.data.recipes.ShapedRecipeBuilder copyRecipe
    • omitTrimRecipe

      protected boolean omitTrimRecipe
  • Constructor Details

    • PatternConfig

      protected PatternConfig(net.minecraft.world.level.ItemLike templateItem)
  • Method Details

    • langEntry

      public BaseTrimDatagenSuite.PatternConfig langEntry(String translation)
      The default lang entry is en_us, generated from the pattern id. This allows users to change the lang entry associated with the translation consumer passed in from the constructor.
    • langEntry

      public BaseTrimDatagenSuite.PatternConfig langEntry(BiConsumer<String,String> translationConsumer, String translation)
      Allows users to specify alternate lang entries for other language providers
    • textureLocations

      public BaseTrimDatagenSuite.PatternConfig textureLocations(net.minecraft.resources.ResourceLocation main, net.minecraft.resources.ResourceLocation leggings)
      The generated paths are "modid:trims/models/armor/pattern" and "modid:trims/models/armor/pattern_leggings". This method can be used if the textures are located elsewhere.
    • createCopyRecipe

      public BaseTrimDatagenSuite.PatternConfig createCopyRecipe(net.minecraft.world.level.ItemLike baseItem)
      Creates a default "copy" recipe to duplicate the template. #S# # = minecraft:diamond #C# C = baseItem ### S = templateItem
    • omitTrimRecipe

      public BaseTrimDatagenSuite.PatternConfig omitTrimRecipe()
      Sets a flag that prevents a default smithing trim recipe from being generated.