Package cn.nukkit.network.protocol.types
Record Class BlockChangeEntry
java.lang.Object
java.lang.Record
cn.nukkit.network.protocol.types.BlockChangeEntry
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public record BlockChangeEntry(BlockVector3 blockPos, int runtimeID, int updateFlags, long messageEntityID, BlockChangeEntry.MessageType messageType)
extends Record
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionBlockChangeEntry
(BlockVector3 blockPos, int runtimeID, int updateFlags, long messageEntityID, BlockChangeEntry.MessageType messageType) Creates an instance of aBlockChangeEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionblockPos()
Returns the value of theblockPos
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of themessageEntityID
record component.Returns the value of themessageType
record component.int
Returns the value of theruntimeID
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theupdateFlags
record component.
-
Constructor Details
-
BlockChangeEntry
public BlockChangeEntry(BlockVector3 blockPos, int runtimeID, int updateFlags, long messageEntityID, BlockChangeEntry.MessageType messageType) Creates an instance of aBlockChangeEntry
record class.- Parameters:
blockPos
- the value for theblockPos
record componentruntimeID
- the value for theruntimeID
record componentupdateFlags
- the value for theupdateFlags
record componentmessageEntityID
- the value for themessageEntityID
record componentmessageType
- the value for themessageType
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 '=='. -
blockPos
Returns the value of theblockPos
record component.- Returns:
- the value of the
blockPos
record component
-
runtimeID
public int runtimeID()Returns the value of theruntimeID
record component.- Returns:
- the value of the
runtimeID
record component
-
updateFlags
public int updateFlags()Returns the value of theupdateFlags
record component.- Returns:
- the value of the
updateFlags
record component
-
messageEntityID
public long messageEntityID()Returns the value of themessageEntityID
record component.- Returns:
- the value of the
messageEntityID
record component
-
messageType
Returns the value of themessageType
record component.- Returns:
- the value of the
messageType
record component
-