Record Class DeclareRecipesPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.DeclareRecipesPacket
- All Implemented Interfaces:
SendablePacket
,ServerPacket
,ServerPacket.Play
public record DeclareRecipesPacket(@NotNull Map<RecipeProperty, List<Material>> itemProperties, @NotNull List<DeclareRecipesPacket.StonecutterRecipe> stonecutterRecipes)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeclareRecipesPacket
(@NotNull Map<RecipeProperty, List<Material>> itemProperties, @NotNull List<DeclareRecipesPacket.StonecutterRecipe> stonecutterRecipes) Creates an instance of aDeclareRecipesPacket
record class. -
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.@NotNull Map
<RecipeProperty, List<Material>> Returns the value of theitemProperties
record component.@NotNull List
<DeclareRecipesPacket.StonecutterRecipe> Returns the value of thestonecutterRecipes
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
DeclareRecipesPacket
public DeclareRecipesPacket(@NotNull @NotNull Map<RecipeProperty, List<Material>> itemProperties, @NotNull @NotNull List<DeclareRecipesPacket.StonecutterRecipe> stonecutterRecipes) Creates an instance of aDeclareRecipesPacket
record class.- Parameters:
itemProperties
- the value for theitemProperties
record componentstonecutterRecipes
- the value for thestonecutterRecipes
record component
-
-
Method Details
-
toString
-
hashCode
-
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)
. -
itemProperties
Returns the value of theitemProperties
record component.- Returns:
- the value of the
itemProperties
record component
-
stonecutterRecipes
Returns the value of thestonecutterRecipes
record component.- Returns:
- the value of the
stonecutterRecipes
record component
-