Record Class RecipeViewerData
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.viewer.server.RecipeViewerData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, RecipeViewerData> -
Constructor Summary
ConstructorsConstructorDescriptionRecipeViewerData(List<net.minecraft.resources.ResourceLocation> removedCategories, List<net.minecraft.resources.ResourceLocation> removedGlobalRecipes, List<CategoryData> categoryData, ItemData itemData, FluidData fluidData) Creates an instance of aRecipeViewerDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecategoryDatarecord component.static @Nullable RecipeViewerDatacollect()final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefluidDatarecord component.final inthashCode()Returns a hash code value for this object.booleanisEmpty()itemData()Returns the value of theitemDatarecord component.List<net.minecraft.resources.ResourceLocation> Returns the value of theremovedCategoriesrecord component.List<net.minecraft.resources.ResourceLocation> Returns the value of theremovedGlobalRecipesrecord 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,RecipeViewerData> STREAM_CODEC
-
-
Constructor Details
-
RecipeViewerData
public RecipeViewerData(List<net.minecraft.resources.ResourceLocation> removedCategories, List<net.minecraft.resources.ResourceLocation> removedGlobalRecipes, List<CategoryData> categoryData, ItemData itemData, FluidData fluidData) Creates an instance of aRecipeViewerDatarecord class.- Parameters:
removedCategories- the value for theremovedCategoriesrecord componentremovedGlobalRecipes- the value for theremovedGlobalRecipesrecord componentcategoryData- the value for thecategoryDatarecord componentitemData- the value for theitemDatarecord componentfluidData- the value for thefluidDatarecord component
-
-
Method Details
-
collect
-
isEmpty
public boolean isEmpty() -
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). -
removedCategories
Returns the value of theremovedCategoriesrecord component.- Returns:
- the value of the
removedCategoriesrecord component
-
removedGlobalRecipes
Returns the value of theremovedGlobalRecipesrecord component.- Returns:
- the value of the
removedGlobalRecipesrecord component
-
categoryData
Returns the value of thecategoryDatarecord component.- Returns:
- the value of the
categoryDatarecord component
-
itemData
Returns the value of theitemDatarecord component.- Returns:
- the value of the
itemDatarecord component
-
fluidData
Returns the value of thefluidDatarecord component.- Returns:
- the value of the
fluidDatarecord component
-