Class ArmorSet
java.lang.Object
net.xun.lib.common.api.item.armor.ArmorSet
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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArmorSet(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 TypeMethodDescriptionList<net.minecraft.world.item.Item> getAll()Retrieves all registered armor items in this set.Supplier<net.minecraft.world.item.ArmorItem> getBoots()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.Retrieves all armor items in this set for registration purposes.Supplier<net.minecraft.world.item.ArmorItem> Gets the leggings item from this armor set.getName()Gets the base name of this armor set.
-
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
ResourceLocationkeys toSupplierproviders for armor items
-
getName
Gets the base name of this armor set.- Returns:
- The base name of this armor set
-
getHelmet
Gets the helmet item from this armor set.- Returns:
- Supplier providing the registered helmet
-
getChestplate
Gets the chestplate item from this armor set.- Returns:
- Supplier providing the registered chestplate
-
getLeggings
Gets the leggings item from this armor set.- Returns:
- Supplier providing the registered leggings
-
getBoots
Gets the boots item from this armor set.- Returns:
- Supplier providing the registered boots
-
getAll
Retrieves all registered armor items in this set.- Returns:
- List containing all armor items
-