Record Class HoneycombItem.WaxedRecipeGroup
java.lang.Object
java.lang.Record
net.minecraft.world.item.HoneycombItem.WaxedRecipeGroup
- Enclosing class:
HoneycombItem
private static record HoneycombItem.WaxedRecipeGroup(WeatheringCopperCollection<Block> block, Function<Block, com.mojang.datafixers.util.Pair<RecipeCategory, String>> recipeIdProvider)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WeatheringCopperCollection<Block> The field for theblockrecord component.private final Function<Block, com.mojang.datafixers.util.Pair<RecipeCategory, String>> The field for therecipeIdProviderrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWaxedRecipeGroup(WeatheringCopperCollection<Block> block, Function<Block, com.mojang.datafixers.util.Pair<RecipeCategory, String>> recipeIdProvider) Creates an instance of aWaxedRecipeGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Function<Block, com.mojang.datafixers.util.Pair<RecipeCategory, String>> Returns the value of therecipeIdProviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
block
The field for theblockrecord component. -
recipeIdProvider
private final Function<Block, com.mojang.datafixers.util.Pair<RecipeCategory, String>> recipeIdProviderThe field for therecipeIdProviderrecord component.
-
-
Constructor Details
-
WaxedRecipeGroup
private WaxedRecipeGroup(WeatheringCopperCollection<Block> block, Function<Block, com.mojang.datafixers.util.Pair<RecipeCategory, String>> recipeIdProvider) Creates an instance of aWaxedRecipeGrouprecord class.- Parameters:
block- the value for theblockrecord componentrecipeIdProvider- the value for therecipeIdProviderrecord 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). -
block
Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-
recipeIdProvider
Returns the value of therecipeIdProviderrecord component.- Returns:
- the value of the
recipeIdProviderrecord component
-