20212223242526
String title = ChannelBufferUtils.readString(buffer); int x = buffer.readInt(); int y = buffer.readInt(); int z = buffer.readInt(); int type = buffer.readInt(); return new SpawnPaintingMessage(id, title, x, y, z, type); }