Record Class ResponseEntityDataMessage
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.server.ResponseEntityDataMessage
- All Implemented Interfaces:
net.minestom.server.network.packet.server.SendablePacket,net.minestom.server.network.packet.server.ServerPacket,net.minestom.server.network.packet.server.ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
net.minestom.server.network.packet.server.ServerPacket.ComponentHolding, net.minestom.server.network.packet.server.ServerPacket.Configuration, net.minestom.server.network.packet.server.ServerPacket.Login, net.minestom.server.network.packet.server.ServerPacket.Play, net.minestom.server.network.packet.server.ServerPacket.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<ResponseEntityDataMessage> -
Constructor Summary
ConstructorsConstructorDescriptionResponseEntityDataMessage(long requestId, boolean finished, Map<UUID, net.kyori.adventure.nbt.CompoundBinaryTag> entityData) Creates an instance of aResponseEntityDataMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityDatarecord component.final booleanIndicates whether some other object is "equal to" this one.booleanfinished()Returns the value of thefinishedrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of therequestIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
TYPE
-
-
Constructor Details
-
ResponseEntityDataMessage
public ResponseEntityDataMessage(long requestId, boolean finished, Map<UUID, net.kyori.adventure.nbt.CompoundBinaryTag> entityData) Creates an instance of aResponseEntityDataMessagerecord class.- Parameters:
requestId- the value for therequestIdrecord componentfinished- the value for thefinishedrecord componententityData- the value for theentityDatarecord 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 '=='. -
requestId
public long requestId()Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
finished
public boolean finished()Returns the value of thefinishedrecord component.- Returns:
- the value of the
finishedrecord component
-
entityData
Returns the value of theentityDatarecord component.- Returns:
- the value of the
entityDatarecord component
-