⭐
StarAPI Documentation
  • ⭐API Information
    • ❔About Our API's
    • ⬇️Installing Our API
  • 🌟StarAPI (Spigot/Paper)
    • 📂Abilities
      • ⏳Transmition
      • 🤯Implosion
      • 🏹MultiShot
    • 📂Builders
      • 👕Armor Builder
      • 📊Bossbar Builder
      • ☄️Command Builder
      • ⚔️Item Builder
      • 🧟‍♂️Mob Builder
      • 💯Scoreboard Builder
      • 🔗Webhook Builder
      • 🔨Message Builder
      • 🏗️Actionbar Builder
    • 📂Files
      • 📃Create Files
      • 📁Create Folders
      • 📖Read Files
      • 🖊️Write Files
    • 📂Inventory Utilities
      • 💎Animated Items
      • 📖Book Content
      • 📔Book GUI
      • 🎞️Filler
      • 🪁Inventory Items
      • 📝Inventory Name
      • 💀Inventory Skulls
    • 📂Message Utilities
      • 🤖Auto Responses
      • 🎨Message Colors
    • 📂Recipes
      • ⚒️Crafting Recipes
      • 🧑‍🍳Furnace Recipes
    • 📂Timers
      • 🕙Active Timers
      • ❌Cancel Timers
      • 🕙Delayed Timers
      • 🕐Create Timers
    • 📂Misc
      • 💀Give Skulls
      • 📈Progress Bars
      • ⬛Block Placer
Powered by GitBook
On this page
  • Overview
  • Constructor
  • Methods
  • Notes
  1. StarAPI (Spigot/Paper)
  2. Builders

Armor Builder

Created armor sets that are dye'd or not.

Overview

The ArmorBuilder class facilitates the construction of custom armor pieces in a Minecraft Bukkit server environment. This builder pattern allows for the creation of armor with specified attributes, enchantments, colors, and more, providing flexibility in armor customization for players and developers alike.

Constructor

ArmorBuilder

public ArmorBuilder(Material armorType)

Initializes a new instance of the ArmorBuilder class with the specified armor type.

Parameters

  • armorType: The material type of the armor piece to be constructed.

Methods

displayName

public ArmorBuilder displayName(String displayName)

Sets the display name for the armor piece being constructed.

lore

public ArmorBuilder lore(String... lore)

Sets the lore for the armor piece being constructed.

amount

public ArmorBuilder amount(int amount)

Sets the amount of the armor piece being constructed.

enchant

public ArmorBuilder enchant(Enchantment enchantment, int level)

Enchants the armor piece being constructed with the specified enchantment and level.

attribute

public ArmorBuilder attribute(Attribute attribute, AttributeModifier modifier)

Sets an attribute modifier for the armor piece being constructed.

flags

public ArmorBuilder flags(ItemFlag... flags)

Sets item flags for the armor piece being constructed.

leatherColor

public ArmorBuilder leatherColor(Color color)

Sets the leather color for leather armor pieces being constructed.

build

public ItemStack build()

Builds and returns the constructed armor piece.

Notes

  • The ArmorBuilder class allows for the creation of custom armor pieces with various attributes and properties.

  • Each method in the builder pattern modifies the attributes of the armor piece being constructed.

  • Developers can utilize this class to provide players with customized armor options tailored to their preferences and gameplay needs.

PreviousBuildersNextBossbar Builder

Last updated 1 year ago

🌟
📂
👕