Record Class EquipmentSet.SmithingRecipes
java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.EquipmentSet.SmithingRecipes
- Enclosing class:
EquipmentSet
public static record EquipmentSet.SmithingRecipes(Supplier<? extends net.minecraft.world.level.ItemLike> template, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSmithingRecipes(Supplier<? extends net.minecraft.world.level.ItemLike> template, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor, @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor) Creates an instance of aSmithingRecipesrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe()Returns the value of theaxerecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots()Returns the value of thebootsrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> 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.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet()Returns the value of thehelmetrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe()Returns the value of thehoerecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thehorseArmorrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings()Returns the value of theleggingsrecord component.net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material()Returns the value of thematerialrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> Returns the value of thenautilusArmorrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe()Returns the value of thepickaxerecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel()Returns the value of theshovelrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear()Returns the value of thespearrecord component.@Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword()Returns the value of theswordrecord component.Supplier<? extends net.minecraft.world.level.ItemLike> template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SmithingRecipes
public SmithingRecipes(Supplier<? extends net.minecraft.world.level.ItemLike> template, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> sword, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> spear, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> axe, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> pickaxe, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> shovel, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> hoe, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> helmet, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> chestplate, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> leggings, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> boots, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> horseArmor, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.ItemLike> nautilusArmor) Creates an instance of aSmithingRecipesrecord class.- Parameters:
template- the value for thetemplaterecord componentmaterial- the value for thematerialrecord componentsword- the value for theswordrecord componentspear- the value for thespearrecord componentaxe- the value for theaxerecord componentpickaxe- the value for thepickaxerecord componentshovel- the value for theshovelrecord componenthoe- the value for thehoerecord componenthelmet- the value for thehelmetrecord componentchestplate- the value for thechestplaterecord componentleggings- the value for theleggingsrecord componentboots- the value for thebootsrecord componenthorseArmor- the value for thehorseArmorrecord componentnautilusArmor- the value for thenautilusArmorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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
-
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
-
sword
Returns the value of theswordrecord component.- Returns:
- the value of the
swordrecord component
-
spear
Returns the value of thespearrecord component.- Returns:
- the value of the
spearrecord component
-
axe
Returns the value of theaxerecord component.- Returns:
- the value of the
axerecord component
-
pickaxe
Returns the value of thepickaxerecord component.- Returns:
- the value of the
pickaxerecord component
-
shovel
Returns the value of theshovelrecord component.- Returns:
- the value of the
shovelrecord component
-
hoe
Returns the value of thehoerecord component.- Returns:
- the value of the
hoerecord 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
-
horseArmor
Returns the value of thehorseArmorrecord component.- Returns:
- the value of the
horseArmorrecord component
-
nautilusArmor
Returns the value of thenautilusArmorrecord component.- Returns:
- the value of the
nautilusArmorrecord component
-