Record Class CategoryData
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.viewer.server.CategoryData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, CategoryData> -
Constructor Summary
ConstructorsConstructorDescriptionCategoryData(net.minecraft.resources.ResourceLocation category) CategoryData(net.minecraft.resources.ResourceLocation category, List<net.minecraft.resources.ResourceLocation> removedRecipes) Creates an instance of aCategoryDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationcategory()Returns the value of thecategoryrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lock()List<net.minecraft.resources.ResourceLocation> Returns the value of theremovedRecipesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,CategoryData> STREAM_CODEC
-
-
Constructor Details
-
CategoryData
public CategoryData(net.minecraft.resources.ResourceLocation category) -
CategoryData
public CategoryData(net.minecraft.resources.ResourceLocation category, List<net.minecraft.resources.ResourceLocation> removedRecipes) Creates an instance of aCategoryDatarecord class.- Parameters:
category- the value for thecategoryrecord componentremovedRecipes- the value for theremovedRecipesrecord component
-
-
Method Details
-
lock
-
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). -
category
public net.minecraft.resources.ResourceLocation category()Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-
removedRecipes
Returns the value of theremovedRecipesrecord component.- Returns:
- the value of the
removedRecipesrecord component
-