listener = argListener;
}
@Override
public SerializationResult serialize(World argWorld) {
final PbWorld world = serializeWorld(argWorld).build();
return new SerializationResult() {
@Override
public void writeTo(OutputStream argOutputStream) throws IOException {
world.writeTo(argOutputStream);
}
@Override
public Object getValue() {
return world;