Record Class ClientboundRemoveEntitiesPacket
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundRemoveEntitiesPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public record ClientboundRemoveEntitiesPacket(it.unimi.dsi.fastutil.ints.IntList entityIds)
extends Record
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.ints.IntListThe field for theentityIdsrecord component.private static final StreamCodec<io.netty.buffer.ByteBuf, it.unimi.dsi.fastutil.ints.IntList> static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundRemoveEntitiesPacket> -
Constructor Summary
ConstructorsConstructorDescriptionClientboundRemoveEntitiesPacket(int... ids) ClientboundRemoveEntitiesPacket(it.unimi.dsi.fastutil.ints.IntList entityIds) Creates an instance of aClientboundRemoveEntitiesPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionit.unimi.dsi.fastutil.ints.IntListReturns the value of theentityIdsrecord component.final booleanIndicates whether some other object is "equal to" this one.voidhandle(ClientGamePacketListener listener) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface Packet
isSkippable, isTerminal
-
Field Details
-
entityIds
private final it.unimi.dsi.fastutil.ints.IntList entityIdsThe field for theentityIdsrecord component. -
ID_LIST_STREAM_CODEC
private static final StreamCodec<io.netty.buffer.ByteBuf, it.unimi.dsi.fastutil.ints.IntList> ID_LIST_STREAM_CODEC -
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundRemoveEntitiesPacket> STREAM_CODEC
-
-
Constructor Details
-
ClientboundRemoveEntitiesPacket
public ClientboundRemoveEntitiesPacket(int... ids) -
ClientboundRemoveEntitiesPacket
public ClientboundRemoveEntitiesPacket(it.unimi.dsi.fastutil.ints.IntList entityIds) Creates an instance of aClientboundRemoveEntitiesPacketrecord class.- Parameters:
entityIds- the value for theentityIdsrecord component
-
-
Method Details
-
type
- Specified by:
typein interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
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
public it.unimi.dsi.fastutil.ints.IntList entityIds()Returns the value of theentityIdsrecord component.- Returns:
- the value of the
entityIdsrecord component
-