Class SmithingTemplateItemBuilder
java.lang.Object
dev.latvian.mods.kubejs.registry.BuilderBase<net.minecraft.world.item.Item>
dev.latvian.mods.kubejs.registry.ModelledBuilderBase<net.minecraft.world.item.Item>
dev.latvian.mods.kubejs.item.ItemBuilder
dev.latvian.mods.kubejs.item.custom.SmithingTemplateItemBuilder
- All Implemented Interfaces:
Supplier<net.minecraft.world.item.Item>
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.latvian.mods.kubejs.item.ItemBuilder
ItemBuilder.FinishUsingCallback, ItemBuilder.HurtEnemyContext, ItemBuilder.NameCallback, ItemBuilder.ReleaseUsingCallback, ItemBuilder.UseCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<net.minecraft.resources.ResourceLocation> net.minecraft.network.chat.Componentnet.minecraft.network.chat.Componentnet.minecraft.network.chat.Componentfinal List<net.minecraft.resources.ResourceLocation> net.minecraft.network.chat.ComponentFields inherited from class dev.latvian.mods.kubejs.item.ItemBuilder
anim, barColor, barWidth, burnTime, canRepair, components, finishUsing, fireResistant, foodBuilder, glow, hurtEnemy, itemAttributeModifiers, jukeboxPlayable, maxDamage, maxStackSize, nameGetter, rarity, releaseUsing, subtypes, tint, tool, tooltip, use, useDurationFields inherited from class dev.latvian.mods.kubejs.registry.ModelledBuilderBase
baseTexture, modelGenerator, parentModel, texturesFields inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
defaultTags, displayName, dummyBuilder, formattedDisplayName, id, object, registryKey, sourceLine, translationKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAppliesToSlotIcon(net.minecraft.resources.ResourceLocation location) addIngredientsSlotIcon(net.minecraft.resources.ResourceLocation location) axeIcon()net.minecraft.world.item.SmithingTemplateItemdisplayName(net.minecraft.network.chat.Component name) dustIcon()voidgenerateLang(LangKubeEvent lang) hoeIcon()ingredients(String text) Methods inherited from class dev.latvian.mods.kubejs.item.ItemBuilder
barColor, barWidth, burnTime, color, color, component, containerItem, createItemProperties, disableRepair, finishUsing, fireResistant, fireResistant, food, food, generateAssets, generateItemModels, glow, group, hurtEnemy, jukeboxPlayable, jukeboxPlayable, maxDamage, maxStackSize, name, rarity, releaseUsing, subtypes, tooltip, transformObject, unstackable, use, useAnimation, useDurationMethods inherited from class dev.latvian.mods.kubejs.registry.ModelledBuilderBase
modelGenerator, parentModel, texture, texture, texturesMethods inherited from class dev.latvian.mods.kubejs.registry.BuilderBase
createAdditionalObjects, createTransformedObject, formattedDisplayName, formattedDisplayName, generateData, get, getBuilderTranslationKey, getTranslationKeyGroup, newID, tag, toString, translationKey
-
Field Details
-
appliesToText
public net.minecraft.network.chat.Component appliesToText -
ingredientsText
public net.minecraft.network.chat.Component ingredientsText -
appliesToSlotDescriptionText
public net.minecraft.network.chat.Component appliesToSlotDescriptionText -
ingredientSlotDescriptionText
public net.minecraft.network.chat.Component ingredientSlotDescriptionText -
appliesToEmptyIcons
-
ingredientsSlotEmptyIcons
-
-
Constructor Details
-
SmithingTemplateItemBuilder
public SmithingTemplateItemBuilder(net.minecraft.resources.ResourceLocation i)
-
-
Method Details
-
appliesTo
@Info("Sets the description text that shows in the item tooltip to describe what it can be applied to.\nUsing \'Armor\' or \'Diamond Equipment\' will use the vanilla language keys so it is translated into other languages automatically.\nTHIS IS PURELY VISUAL\n\nIf you wish to apply non standard formatting (like change the colour) set the `ingredientsText` field.\n") public SmithingTemplateItemBuilder appliesTo(String text) -
ingredients
@Info("Sets the description text that shows in the item tooltip to describe what ingredients can be added.\nUsing \'Ingots & Crystals\' or \'Netherite Ingot\' will use the vanilla language keys so it is translated into other languages automatically.\nTHIS IS PURELY VISUAL\n\nIf you wish to apply non standard formatting (like change the colour) set the `ingredientsText` field.\n") public SmithingTemplateItemBuilder ingredients(String text) -
appliesToSlotDescription
@Info("Sets the description text that shows when you hover over the base item slot when this item is put in smithing table as a template.\nUsing \'Add a piece of armor\' or \'Add diamond armor, weapon, or tool\' will use the vanilla language keys so it is translated into other languages automatically.\n\nIf you wish to apply non standard formatting (like change the colour) set the `appliesToSlotDescriptionText` field.\n") public SmithingTemplateItemBuilder appliesToSlotDescription(String text) -
ingredientsSlotDescription
@Info("Sets the description text that shows when you hover over the ingredient slot when this item is put in smithing table as a template.\nUsing \'Add ingot or crystal\' or \'Add Netherite Ingot\' will use the vanilla language keys so it is translated into other languages automatically.\n\nIf you wish to apply non standard formatting (like change the colour) set the `ingredientSlotDescriptionText` field.\n") public SmithingTemplateItemBuilder ingredientsSlotDescription(String text) -
addAppliesToSlotIcon
@Info("Adds the specified texture location to the list of base slot icons that the smithing table cycles through when this smithing template is put in.") public SmithingTemplateItemBuilder addAppliesToSlotIcon(net.minecraft.resources.ResourceLocation location) -
addIngredientsSlotIcon
@Info("Adds the specified texture location to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder addIngredientsSlotIcon(net.minecraft.resources.ResourceLocation location) -
armorIcons
@Info("Adds all armor icons to the list of base slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder armorIcons() -
equipmentIcons
@Info("Adds all armor and basic tool icons to the list of base slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder equipmentIcons() -
toolIcons
@Info("Adds all basic tool icons to the list of base slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder toolIcons() -
ingotAndCrystalIcons
@Info("Adds an ingot, dust, diamond, emerald, quartz, lapis lazuli and amethyst shard icons to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder ingotAndCrystalIcons() -
crystalIcons
@Info("Adds a dust, diamond, emerald, quartz, lapis lazuli and amethyst shard icons to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder crystalIcons() -
ingotIcon
@Info("Adds an ingot to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder ingotIcon() -
dustIcon
@Info("Adds a dust to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder dustIcon() -
shardIcon
@Info("Adds an amethyst shard to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder shardIcon() -
diamondIcon
@Info("Adds a diamond to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder diamondIcon() -
emeraldIcon
@Info("Adds an emerald to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder emeraldIcon() -
quartzIcon
@Info("Adds a quartz to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder quartzIcon() -
lapisIcon
@Info("Adds a lapis lazuli to the list of ingredient slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder lapisIcon() -
swordIcon
@Info("Adds a sword to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder swordIcon() -
shovelIcon
@Info("Adds a shovel to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder shovelIcon() -
axeIcon
@Info("Adds a axe to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder axeIcon() -
pickaxeIcon
@Info("Adds a pickaxe to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder pickaxeIcon() -
hoeIcon
@Info("Adds a hoe to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder hoeIcon() -
helmetIcon
@Info("Adds a helmet to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder helmetIcon() -
chestplateIcon
@Info("Adds a chestplate to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder chestplateIcon() -
leggingsIcon
@Info("Adds leggings to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder leggingsIcon() -
bootsIcon
@Info("Adds boots to the list of base item slot icons that the smithing table cycles through when this smithing template is put in") public SmithingTemplateItemBuilder bootsIcon() -
displayName
@Info("Sets the name for this smithing template.\nNote that the normal display name for all smithing templates is the same and cannot be changed, this instead sets the name in the tooltip (see vanilla smithing templates for what this looks like).\n\nThis will be overridden by a lang file if it exists.\n") public SmithingTemplateItemBuilder displayName(net.minecraft.network.chat.Component name) - Overrides:
displayNamein classBuilderBase<net.minecraft.world.item.Item>
-
generateLang
- Overrides:
generateLangin classBuilderBase<net.minecraft.world.item.Item>
-
createObject
public net.minecraft.world.item.SmithingTemplateItem createObject()- Overrides:
createObjectin classItemBuilder
-