Package dev.latvian.mods.kubejs.net
Record Class KubeServerData
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.net.KubeServerData
public record KubeServerData(Optional<RecipeViewerData> recipeViewerData, List<ItemTooltipData> itemTooltipData)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, KubeServerData> -
Constructor Summary
ConstructorsConstructorDescriptionKubeServerData(Optional<RecipeViewerData> recipeViewerData, List<ItemTooltipData> itemTooltipData) Creates an instance of aKubeServerDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic KubeServerDatacollect()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theitemTooltipDatarecord component.Returns the value of therecipeViewerDatarecord 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,KubeServerData> STREAM_CODEC
-
-
Constructor Details
-
KubeServerData
public KubeServerData(Optional<RecipeViewerData> recipeViewerData, List<ItemTooltipData> itemTooltipData) Creates an instance of aKubeServerDatarecord class.- Parameters:
recipeViewerData- the value for therecipeViewerDatarecord componentitemTooltipData- the value for theitemTooltipDatarecord component
-
-
Method Details
-
collect
-
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). -
recipeViewerData
Returns the value of therecipeViewerDatarecord component.- Returns:
- the value of the
recipeViewerDatarecord component
-
itemTooltipData
Returns the value of theitemTooltipDatarecord component.- Returns:
- the value of the
itemTooltipDatarecord component
-