Package net.minecraft.server.network
Record Class ServerRecipeBook.Packed
java.lang.Object
java.lang.Record
net.minecraft.server.network.ServerRecipeBook.Packed
- Record Components:
settings-known-highlight-
- Enclosing class:
ServerRecipeBook
public static record ServerRecipeBook.Packed(RecipeBookOptions settings, List<RegistryKey<Recipe<?>>> known, List<RegistryKey<Recipe<?>>> highlight)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/network/ServerRecipeBook$Packedintermediary net/minecraft/class_3441$class_11328official bcj$bnamed settingsintermediary comp_4196official bnamed knownintermediary comp_4197official cnamed highlightintermediary comp_4198official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ServerRecipeBook.Packed> private final List<RegistryKey<Recipe<?>>> The field for thehighlightrecord component.private final List<RegistryKey<Recipe<?>>> The field for theknownrecord component.private final RecipeBookOptionsThe field for thesettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked(RecipeBookOptions recipeBookOptions, List<RegistryKey<Recipe<?>>> list, List<RegistryKey<Recipe<?>>> list2) -
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.List<RegistryKey<Recipe<?>>> Returns the value of thehighlightrecord component.List<RegistryKey<Recipe<?>>> known()Returns the value of theknownrecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
settings
The field for thesettingsrecord component. -
known
The field for theknownrecord component. -
highlight
The field for thehighlightrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/server/network/ServerRecipeBook$Packed;CODEC:Lcom/mojang/serialization/Codec;intermediary field_60346Lnet/minecraft/class_3441$class_11328;field_60346:Lcom/mojang/serialization/Codec;official aLbcj$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Packed
public Packed(RecipeBookOptions recipeBookOptions, List<RegistryKey<Recipe<?>>> list, List<RegistryKey<Recipe<?>>> list2)
-
-
Method Details
-
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). -
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
known
Returns the value of theknownrecord component.- Returns:
- the value of the
knownrecord component
-
highlight
Returns the value of thehighlightrecord component.- Returns:
- the value of the
highlightrecord component
-