Class ClientboundSetEntityLinkPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.entity.ClientboundSetEntityLinkPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundSetEntityLinkPacket(int entityId, int attachedToId) ClientboundSetEntityLinkPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintinthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundSetEntityLinkPacketwithAttachedToId(int attachedToId) @NonNull ClientboundSetEntityLinkPacketwithEntityId(int entityId) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority, isTerminal
-
Constructor Details
-
ClientboundSetEntityLinkPacket
-
ClientboundSetEntityLinkPacket
public ClientboundSetEntityLinkPacket(int entityId, int attachedToId)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEntityId
public int getEntityId() -
getAttachedToId
public int getAttachedToId() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withEntityId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withAttachedToId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-