buffer.writeInt(message.getId());
ChannelBufferUtils.writeString(buffer, message.getName());
buffer.writeInt(message.getX());
buffer.writeInt(message.getY());
buffer.writeInt(message.getZ());
buffer.writeByte(message.getRotation());
buffer.writeByte(message.getPitch());
buffer.writeShort(message.getItem());
return buffer;
}