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
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
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
-