Class EntityAttachS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.EntityAttachS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class EntityAttachS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field Description private intattachedIdprivate intholdingId -
Constructor Summary
Constructors Constructor Description EntityAttachS2CPacket()EntityAttachS2CPacket(Entity attachedEntity, Entity holdingEntity) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetAttachedEntityId()intgetHoldingEntityId()voidread(PacketByteBuf buf)voidwrite(PacketByteBuf buf)
-
Field Details
-
attachedId
private int attachedId -
holdingId
private int holdingId
-
-
Constructor Details
-
EntityAttachS2CPacket
public EntityAttachS2CPacket() -
EntityAttachS2CPacket
-
-
Method Details
-
read
- Specified by:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin interfacePacket<ClientPlayPacketListener>
-
getAttachedEntityId
@Environment(CLIENT) public int getAttachedEntityId() -
getHoldingEntityId
@Environment(CLIENT) public int getHoldingEntityId()
-