Record Class RecipeTypeImpl<T extends net.minecraft.world.item.crafting.Recipe<?>>
java.lang.Object
java.lang.Record
net.darkhax.bookshelf.common.impl.recipe.RecipeTypeImpl<T>
- All Implemented Interfaces:
net.minecraft.world.item.crafting.RecipeType<T>
public record RecipeTypeImpl<T extends net.minecraft.world.item.crafting.Recipe<?>>(net.minecraft.resources.Identifier id)
extends Record
implements net.minecraft.world.item.crafting.RecipeType<T>
-
Field Summary
Fields inherited from interface net.minecraft.world.item.crafting.RecipeType
BLASTING, CAMPFIRE_COOKING, CRAFTING, SMELTING, SMITHING, SMOKING, STONECUTTING -
Constructor Summary
ConstructorsConstructorDescriptionRecipeTypeImpl(net.minecraft.resources.Identifier id) Creates an instance of aRecipeTypeImplrecord class. -
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.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.@NotNull StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecipeTypeImpl
public RecipeTypeImpl(net.minecraft.resources.Identifier id) Creates an instance of aRecipeTypeImplrecord class.- Parameters:
id- the value for theidrecord 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). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-