Record Class ClientUpdateJigsawBlockPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.client.play.ClientUpdateJigsawBlockPacket
- All Implemented Interfaces:
ClientPacket
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thefinalState
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thejointType
record component.location()
Returns the value of thelocation
record component.name()
Returns the value of thename
record component.int
Returns the value of theplacementPriority
record component.pool()
Returns the value of thepool
record component.int
Returns the value of theselectionPriority
record component.target()
Returns the value of thetarget
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
ClientUpdateJigsawBlockPacket
public ClientUpdateJigsawBlockPacket(Point location, String name, String target, String pool, String finalState, String jointType, int selectionPriority, int placementPriority) Creates an instance of aClientUpdateJigsawBlockPacket
record class.- Parameters:
location
- the value for thelocation
record componentname
- the value for thename
record componenttarget
- the value for thetarget
record componentpool
- the value for thepool
record componentfinalState
- the value for thefinalState
record componentjointType
- the value for thejointType
record componentselectionPriority
- the value for theselectionPriority
record componentplacementPriority
- the value for theplacementPriority
record component
-
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
location
Returns the value of thelocation
record component.- Returns:
- the value of the
location
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
pool
Returns the value of thepool
record component.- Returns:
- the value of the
pool
record component
-
finalState
Returns the value of thefinalState
record component.- Returns:
- the value of the
finalState
record component
-
jointType
Returns the value of thejointType
record component.- Returns:
- the value of the
jointType
record component
-
selectionPriority
public int selectionPriority()Returns the value of theselectionPriority
record component.- Returns:
- the value of the
selectionPriority
record component
-
placementPriority
public int placementPriority()Returns the value of theplacementPriority
record component.- Returns:
- the value of the
placementPriority
record component
-