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$Packed
intermediary net/minecraft/class_3441$class_11328
official aze$b
named settings
intermediary comp_4196
official b
named known
intermediary comp_4197
official c
named highlight
intermediary comp_4198
official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<ServerRecipeBook.Packed> private final List
<RegistryKey<Recipe<?>>> The field for thehighlight
record component.private final List
<RegistryKey<Recipe<?>>> The field for theknown
record component.private final RecipeBookOptions
The field for thesettings
record component. -
Constructor Summary
ConstructorsConstructorDescriptionPacked
(RecipeBookOptions recipeBookOptions, List<RegistryKey<Recipe<?>>> list, List<RegistryKey<Recipe<?>>> list2) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.List
<RegistryKey<Recipe<?>>> Returns the value of thehighlight
record component.List
<RegistryKey<Recipe<?>>> known()
Returns the value of theknown
record component.settings()
Returns the value of thesettings
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
settings
The field for thesettings
record component. -
known
The field for theknown
record component. -
highlight
The field for thehighlight
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/server/network/ServerRecipeBook$Packed;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_60346
Lnet/minecraft/class_3441$class_11328;field_60346:Lcom/mojang/serialization/Codec;
official a
Laze$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 thesettings
record component.- Returns:
- the value of the
settings
record component
-
known
Returns the value of theknown
record component.- Returns:
- the value of the
known
record component
-
highlight
Returns the value of thehighlight
record component.- Returns:
- the value of the
highlight
record component
-