cpw.mods.fml.common.registry

## Interface IEntityAdditionalSpawnData

-     public interface IEntityAdditionalSpawnData

  A interface for Entities that need extra information to be communicated between the server and client when they are spawned.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `readSpawnData(io.netty.buffer.ByteBuf additionalData)` Called by the client when it receives a Entity spawn packet.
    `void` | `writeSpawnData(io.netty.buffer.ByteBuf buffer)` Called by the server when constructing the spawn packet.

- - ### Method Detail

    - #### writeSpawnData

          void writeSpawnData(io.netty.buffer.ByteBuf buffer)

      Called by the server when constructing the spawn packet. Data should be added to the provided stream.
      Parameters:
        `buffer` - The packet data stream

    - #### readSpawnData

          void readSpawnData(io.netty.buffer.ByteBuf additionalData)

      Called by the client when it receives a Entity spawn packet. Data should be read out of the stream in the same way as it was written.
      Parameters:
        `data` - The packet data stream