Class BaseTrimDatagenSuite.MaterialConfig

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

public static class BaseTrimDatagenSuite.MaterialConfig extends Object
  • Field Details

    • materialKey

      protected final net.minecraft.resources.ResourceKey<net.minecraft.world.item.equipment.trim.TrimMaterial> materialKey
    • altTranslations

      protected final Set<BaseTrimDatagenSuite.AltTranslation> altTranslations
    • overrides

      protected final Map<net.minecraft.resources.ResourceLocation,String> overrides
    • materialStyle

      protected net.minecraft.network.chat.Style materialStyle
    • mainTranslation

      protected String mainTranslation
    • paletteTexture

      protected net.minecraft.resources.ResourceLocation paletteTexture
    • assetName

      protected String assetName
  • Method Details

    • langEntry

      public BaseTrimDatagenSuite.MaterialConfig 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.MaterialConfig langEntry(BiConsumer<String,String> translationConsumer, String translation)
      Allows users to specify alternate lang entries for other language providers
    • colorPaletteTexture

      public BaseTrimDatagenSuite.MaterialConfig colorPaletteTexture(net.minecraft.resources.ResourceLocation paletteTexture)
      Allows users to change the texture location from the generated default located in "modid:trims/color_palettes/material"
    • style

      public BaseTrimDatagenSuite.MaterialConfig style(UnaryOperator<net.minecraft.network.chat.Style> styleOperator)
      Allows modification of the style used in the material's component. This style is already colored with what was passed into the BaseTrimDatagenSuite.makeMaterial(ResourceKey, ItemLike, int, Consumer) method. Vanilla only applies color to their components, but modders may want to do more.
    • assetName

      Changes the asset name for the material. Highly discouraged to change it from the generated name, as it prefixes the name with the modid to prevent collision with other sources. If changed, it is encouraged to follow this format "modid_material_name"
      Parameters:
      name - The new asset name
      Returns:
      This instance for chaining method calls
    • armorOverride

      public BaseTrimDatagenSuite.MaterialConfig armorOverride(net.minecraft.resources.ResourceLocation armorMaterial, String assetNameOverride)