Class ArmorSet

java.lang.Object
net.xun.lib.common.api.item.armor.ArmorSet

public class ArmorSet extends Object
Represents a complete set of armor (helmet, chestplate, leggings, boots). Use the nested ArmorSet.Builder to configure armor pieces with consistent properties.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Builder for constructing ArmorSet instances.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ArmorSet(String name, net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> material, int durabilityFactor, Supplier<net.minecraft.world.item.Item.Properties> propertiesSupplier, ArmorConfigurator configuration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<net.minecraft.world.item.Item>
    Retrieves all registered armor items in this set.
    Supplier<net.minecraft.world.item.ArmorItem>
    Gets the boots item from this armor set.
    Supplier<net.minecraft.world.item.ArmorItem>
    Gets the chestplate item from this armor set.
    Supplier<net.minecraft.world.item.ArmorItem>
    Gets the helmet item from this armor set.
    Map<net.minecraft.resources.ResourceLocation,Supplier<net.minecraft.world.item.ArmorItem>>
    Retrieves all armor items in this set for registration purposes.
    Supplier<net.minecraft.world.item.ArmorItem>
    Gets the leggings item from this armor set.
    Gets the base name of this armor set.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ArmorSet

      protected ArmorSet(String name, net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> material, int durabilityFactor, Supplier<net.minecraft.world.item.Item.Properties> propertiesSupplier, ArmorConfigurator configuration)
  • Method Details

    • getItemsForRegistration

      public Map<net.minecraft.resources.ResourceLocation,Supplier<net.minecraft.world.item.ArmorItem>> getItemsForRegistration()
      Retrieves all armor items in this set for registration purposes.
      Returns:
      Map of ResourceLocation keys to Supplier providers for armor items
    • getName

      public String getName()
      Gets the base name of this armor set.
      Returns:
      The base name of this armor set
    • getHelmet

      public Supplier<net.minecraft.world.item.ArmorItem> getHelmet()
      Gets the helmet item from this armor set.
      Returns:
      Supplier providing the registered helmet
    • getChestplate

      public Supplier<net.minecraft.world.item.ArmorItem> getChestplate()
      Gets the chestplate item from this armor set.
      Returns:
      Supplier providing the registered chestplate
    • getLeggings

      public Supplier<net.minecraft.world.item.ArmorItem> getLeggings()
      Gets the leggings item from this armor set.
      Returns:
      Supplier providing the registered leggings
    • getBoots

      public Supplier<net.minecraft.world.item.ArmorItem> getBoots()
      Gets the boots item from this armor set.
      Returns:
      Supplier providing the registered boots
    • getAll

      public List<net.minecraft.world.item.Item> getAll()
      Retrieves all registered armor items in this set.
      Returns:
      List containing all armor items