Record Class ArmorFamilies
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.data.recipes.families.ArmorFamilies
public record ArmorFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, Supplier<? extends net.minecraft.world.item.ArmorItem> helmet, Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate, Supplier<? extends net.minecraft.world.item.ArmorItem> leggings, Supplier<? extends net.minecraft.world.item.ArmorItem> boots, @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ArmorFamiliesstatic final ArmorFamiliesstatic final ArmorFamiliesstatic final com.google.common.collect.ImmutableList<ArmorFamilies>static final ArmorFamiliesstatic final ArmorFamiliesstatic final ArmorFamiliesstatic final ArmorFamilies -
Constructor Summary
ConstructorsConstructorDescriptionArmorFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, Supplier<? extends net.minecraft.world.item.ArmorItem> helmet, Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate, Supplier<? extends net.minecraft.world.item.ArmorItem> leggings, Supplier<? extends net.minecraft.world.item.ArmorItem> boots, @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades) Creates an instance of aArmorFamiliesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.item.ArmorItem>boots()Returns the value of thebootsrecord component.Supplier<? extends net.minecraft.world.item.ArmorItem>Returns the value of thechestplaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Supplier<? extends net.minecraft.world.item.ArmorItem>helmet()Returns the value of thehelmetrecord component.Supplier<? extends net.minecraft.world.item.ArmorItem>leggings()Returns the value of theleggingsrecord component.net.minecraft.tags.TagKey<net.minecraft.world.item.Item>material()Returns the value of thematerialrecord component.@Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item>Returns the value of thesmithingBaseUpgradesrecord component.@Nullable Supplier<? extends net.minecraft.world.item.Item>Returns the value of thesmithingTemplateItemrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
COPPER
-
COBALT
-
MOLTEN
-
VENTUS
-
TESLA
-
ASTRAL
-
STARSTORM
-
FAMILIES
-
-
Constructor Details
-
ArmorFamilies
public ArmorFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, Supplier<? extends net.minecraft.world.item.ArmorItem> helmet, Supplier<? extends net.minecraft.world.item.ArmorItem> chestplate, Supplier<? extends net.minecraft.world.item.ArmorItem> leggings, Supplier<? extends net.minecraft.world.item.ArmorItem> boots, @Nullable @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades) Creates an instance of aArmorFamiliesrecord class.- Parameters:
material- the value for thematerialrecord componenthelmet- the value for thehelmetrecord componentchestplate- the value for thechestplaterecord componentleggings- the value for theleggingsrecord componentboots- the value for thebootsrecord componentsmithingTemplateItem- the value for thesmithingTemplateItemrecord componentsmithingBaseUpgrades- the value for thesmithingBaseUpgradesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
material
public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material()Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
helmet
Returns the value of thehelmetrecord component.- Returns:
- the value of the
helmetrecord component
-
chestplate
Returns the value of thechestplaterecord component.- Returns:
- the value of the
chestplaterecord component
-
leggings
Returns the value of theleggingsrecord component.- Returns:
- the value of the
leggingsrecord component
-
boots
Returns the value of thebootsrecord component.- Returns:
- the value of the
bootsrecord component
-
smithingTemplateItem
Returns the value of thesmithingTemplateItemrecord component.- Returns:
- the value of the
smithingTemplateItemrecord component
-
smithingBaseUpgrades
@Nullable public @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades()Returns the value of thesmithingBaseUpgradesrecord component.- Returns:
- the value of the
smithingBaseUpgradesrecord component
-