Package net.minecraft.data.recipe
Record Class VanillaRecipeGenerator.SmithingTemplate
java.lang.Object
java.lang.Record
net.minecraft.data.recipe.VanillaRecipeGenerator.SmithingTemplate
- Record Components:
template-patternId-recipeId-
- Enclosing class:
VanillaRecipeGenerator
public static record VanillaRecipeGenerator.SmithingTemplate(Item template, RegistryKey<ArmorTrimPattern> patternId, RegistryKey<Recipe<?>> recipeId)
extends Record
- Mappings:
Namespace Name named net/minecraft/data/recipe/VanillaRecipeGenerator$SmithingTemplateintermediary net/minecraft/class_7803$class_8905official os$bnamed templateintermediary comp_2012official anamed patternIdintermediary comp_3630official bnamed recipeIdintermediary comp_3631official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey<ArmorTrimPattern> The field for thepatternIdrecord component.private final RegistryKey<Recipe<?>> The field for therecipeIdrecord component.private final ItemThe field for thetemplaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTemplate(Item item, RegistryKey<ArmorTrimPattern> registryKey, RegistryKey<Recipe<?>> registryKey2) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepatternIdrecord component.RegistryKey<Recipe<?>> recipeId()Returns the value of therecipeIdrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
SmithingTemplate
public SmithingTemplate(Item item, RegistryKey<ArmorTrimPattern> registryKey, RegistryKey<Recipe<?>> registryKey2)
-
-
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). -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
patternId
Returns the value of thepatternIdrecord component.- Returns:
- the value of the
patternIdrecord component
-
recipeId
Returns the value of therecipeIdrecord component.- Returns:
- the value of the
recipeIdrecord component
-