Package dev.dhyces.trimmed.api.data
Class BaseTrimDatagenSuite.MaterialConfig
java.lang.Object
dev.dhyces.trimmed.api.data.BaseTrimDatagenSuite.MaterialConfig
- Enclosing class:
BaseTrimDatagenSuite
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Set<BaseTrimDatagenSuite.AltTranslation> protected Stringprotected Stringprotected final net.minecraft.resources.ResourceKey<net.minecraft.world.item.armortrim.TrimMaterial> protected net.minecraft.network.chat.Styleprotected net.minecraft.resources.ResourceLocation -
Method Summary
Modifier and TypeMethodDescriptionarmorOverride(net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> armorMaterial, String assetNameOverride) armorOverride(net.minecraft.resources.ResourceKey<net.minecraft.world.item.ArmorMaterial> armorMaterial, String assetNameOverride) armorOverride(net.minecraft.world.item.ArmorMaterial armorMaterial, String assetNameOverride) Changes the asset name for the material.colorPaletteTexture(net.minecraft.resources.ResourceLocation paletteTexture) Allows users to change the texture location from the generated default located in "modid:trims/color_palettes/material"The default lang entry is en_us, generated from the pattern id.langEntry(BiConsumer<String, String> translationConsumer, String translation) Allows users to specify alternate lang entries for other language providersstyle(UnaryOperator<net.minecraft.network.chat.Style> styleOperator) Allows modification of the style used in the material's component.
-
Field Details
-
materialKey
protected final net.minecraft.resources.ResourceKey<net.minecraft.world.item.armortrim.TrimMaterial> materialKey -
altTranslations
-
overrides
-
materialStyle
protected net.minecraft.network.chat.Style materialStyle -
mainTranslation
-
paletteTexture
protected net.minecraft.resources.ResourceLocation paletteTexture -
assetName
-
-
Method Details
-
langEntry
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 theBaseTrimDatagenSuite.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.core.Holder<net.minecraft.world.item.ArmorMaterial> armorMaterial, String assetNameOverride) -
armorOverride
public BaseTrimDatagenSuite.MaterialConfig armorOverride(net.minecraft.world.item.ArmorMaterial armorMaterial, String assetNameOverride) -
armorOverride
public BaseTrimDatagenSuite.MaterialConfig armorOverride(net.minecraft.resources.ResourceKey<net.minecraft.world.item.ArmorMaterial> armorMaterial, String assetNameOverride)
-