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$SmithingTemplate
intermediary net/minecraft/class_7803$class_8905
official ox$b
named template
intermediary comp_2012
official a
named patternId
intermediary comp_3630
official b
named recipeId
intermediary comp_3631
official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegistryKey
<ArmorTrimPattern> The field for thepatternId
record component.private final RegistryKey
<Recipe<?>> The field for therecipeId
record component.private final Item
The field for thetemplate
record component. -
Constructor Summary
ConstructorsConstructorDescriptionSmithingTemplate
(Item item, RegistryKey<ArmorTrimPattern> registryKey, RegistryKey<Recipe<?>> registryKey2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thepatternId
record component.RegistryKey
<Recipe<?>> recipeId()
Returns the value of therecipeId
record component.template()
Returns the value of thetemplate
record component.final String
toString()
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 thetemplate
record component.- Returns:
- the value of the
template
record component
-
patternId
Returns the value of thepatternId
record component.- Returns:
- the value of the
patternId
record component
-
recipeId
Returns the value of therecipeId
record component.- Returns:
- the value of the
recipeId
record component
-