Record Class ClientPlaceRecipePacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientPlaceRecipePacket
- All Implemented Interfaces:
ClientPacket
public record ClientPlaceRecipePacket(byte windowId, int recipeDisplayId, boolean makeAll)
extends Record
implements ClientPacket
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientPlaceRecipePacket(byte windowId, int recipeDisplayId, boolean makeAll) Creates an instance of aClientPlaceRecipePacketrecord class. -
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.booleanmakeAll()Returns the value of themakeAllrecord component.intReturns the value of therecipeDisplayIdrecord component.final StringtoString()Returns a string representation of this record class.bytewindowId()Returns the value of thewindowIdrecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientPlaceRecipePacket
public ClientPlaceRecipePacket(byte windowId, int recipeDisplayId, boolean makeAll) Creates an instance of aClientPlaceRecipePacketrecord class.- Parameters:
windowId- the value for thewindowIdrecord componentrecipeDisplayId- the value for therecipeDisplayIdrecord componentmakeAll- the value for themakeAllrecord 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 with thecomparemethod from their corresponding wrapper classes. -
windowId
public byte windowId()Returns the value of thewindowIdrecord component.- Returns:
- the value of the
windowIdrecord component
-
recipeDisplayId
public int recipeDisplayId()Returns the value of therecipeDisplayIdrecord component.- Returns:
- the value of the
recipeDisplayIdrecord component
-
makeAll
public boolean makeAll()Returns the value of themakeAllrecord component.- Returns:
- the value of the
makeAllrecord component
-