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:
ItemBehaviorFunctions, Supplier<net.minecraft.world.item.Item>

@ReturnsSelf public class SmithingTemplateItemBuilder extends ItemBuilder
  • 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

      public final List<net.minecraft.resources.ResourceLocation> appliesToEmptyIcons
    • ingredientsSlotEmptyIcons

      public final List<net.minecraft.resources.ResourceLocation> 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:
      displayName in class BuilderBase<net.minecraft.world.item.Item>
    • generateLang

      public void generateLang(LangKubeEvent lang)
      Overrides:
      generateLang in class BuilderBase<net.minecraft.world.item.Item>
    • createObject

      public net.minecraft.world.item.SmithingTemplateItem createObject()
      Overrides:
      createObject in class ItemBuilder