private void writeParts(NBTTagCompound tag) { NBTTagList l = new NBTTagList(); for (ClayLump lump : parts) { NBTTagCompound rc_tag = new NBTTagCompound(); lump.write(rc_tag); l.appendTag(rc_tag); } tag.setTag("parts", l); }
private void shareLump(int id, ClayLump selection) { ArrayList<Object> toSend = new ArrayList(); toSend.add(id); selection.write(toSend); broadcastMessage(null, SculptMove, toSend.toArray()); }