Package dev.dhyces.trimmed.api.data
Class BaseTrimDatagenSuite.PatternConfig
java.lang.Object
dev.dhyces.trimmed.api.data.BaseTrimDatagenSuite.PatternConfig
- Enclosing class:
BaseTrimDatagenSuite
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<BaseTrimDatagenSuite.AltTranslation> protected net.minecraft.data.recipes.ShapedRecipeBuilderprotected net.minecraft.resources.ResourceLocationprotected net.minecraft.resources.ResourceLocationprotected Stringprotected booleanprotected final net.minecraft.world.level.ItemLike -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPatternConfig(net.minecraft.world.level.ItemLike templateItem) -
Method Summary
Modifier and TypeMethodDescriptioncreateCopyRecipe(net.minecraft.world.level.ItemLike baseItem) Creates a default "copy" recipe to duplicate the template.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 providersSets a flag that prevents a default smithing trim recipe from being generated.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".
-
Field Details
-
templateItem
protected final net.minecraft.world.level.ItemLike templateItem -
mainTranslation
-
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
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
Sets a flag that prevents a default smithing trim recipe from being generated.
-