Record Class ArmorItemRegistryName
java.lang.Object
java.lang.Record
fr.alasdiablo.diolib.api.item.armor.ArmorItemRegistryName
- Record Components:
modId- ID of the mod used to create the domaine of the ResourceLocationname- Actual armor name use to create the complete registry name
This record is use as a registry name provider use to create each registry name of an armor set
-
Constructor Summary
ConstructorsConstructorDescriptionArmorItemRegistryName(String modId, String name) Creates an instance of aArmorItemRegistryNamerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@NotNull net.minecraft.resources.ResourceLocationgetBoots()Create the registry name with the given arguments@NotNull String@NotNull net.minecraft.resources.ResourceLocationCreate the registry name with the given arguments@NotNull String@NotNull net.minecraft.resources.ResourceLocationCreate the registry name with the given arguments@NotNull String@NotNull net.minecraft.resources.ResourceLocationCreate the registry name with the given arguments@NotNull Stringfinal inthashCode()Returns a hash code value for this object.modId()Returns the value of themodIdrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
getHelmet
@Contract(" -> new") @NotNull public @NotNull net.minecraft.resources.ResourceLocation getHelmet()Create the registry name with the given arguments- Returns:
- The registry name of the helmet
-
getHelmetName
-
getChestplate
@Contract(" -> new") @NotNull public @NotNull net.minecraft.resources.ResourceLocation getChestplate()Create the registry name with the given arguments- Returns:
- The registry name of the chestplate
-
getChestplateName
-
getLeggings
@Contract(" -> new") @NotNull public @NotNull net.minecraft.resources.ResourceLocation getLeggings()Create the registry name with the given arguments- Returns:
- The registry name of the leggings
-
getLeggingsName
-
getBoots
@Contract(" -> new") @NotNull public @NotNull net.minecraft.resources.ResourceLocation getBoots()Create the registry name with the given arguments- Returns:
- The registry name of the boots
-
getBootsName
-
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). -
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-