Record Class DestroyEntitiesPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.DestroyEntitiesPacket
- All Implemented Interfaces:
SendablePacket
,ServerPacket
,ServerPacket.Play
public record DestroyEntitiesPacket(@NotNull List<Integer> entityIds)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minestom.server.network.packet.server.ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final NetworkBuffer.Type
<DestroyEntitiesPacket> -
Constructor Summary
ConstructorsConstructorDescriptionDestroyEntitiesPacket
(int entityId) DestroyEntitiesPacket
(@NotNull List<Integer> entityIds) Creates an instance of aDestroyEntitiesPacket
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityIds
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.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
MAX_ENTRIES
public static final int MAX_ENTRIES- See Also:
-
SERIALIZER
-
-
Constructor Details
-
DestroyEntitiesPacket
-
DestroyEntitiesPacket
public DestroyEntitiesPacket(int entityId)
-
-
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 withObjects::equals(Object,Object)
. -
entityIds
-