buffer.writeInt(message.getEntityId());
VanillaByteBufUtils.writeString(buffer, message.getName());
buffer.writeInt(message.getX());
buffer.writeInt(message.getY());
buffer.writeInt(message.getZ());
buffer.writeByte(message.getYaw());
buffer.writeByte(message.getPitch());
buffer.writeShort(message.getId());
VanillaByteBufUtils.writeParameters(buffer, message.getParameters());
return buffer;
}